mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
ConnectionMonitor is once again notified of disconnect
This commit is contained in:
parent
2c53e27992
commit
78b0ac3259
2 changed files with 2 additions and 0 deletions
|
@ -101,4 +101,5 @@ class ActionCable.Connection
|
||||||
disconnect: ->
|
disconnect: ->
|
||||||
return if @disconnected
|
return if @disconnected
|
||||||
@disconnected = true
|
@disconnected = true
|
||||||
|
@consumer.connectionMonitor.disconnected()
|
||||||
@consumer.subscriptions.notifyAll("disconnected")
|
@consumer.subscriptions.notifyAll("disconnected")
|
||||||
|
|
|
@ -18,6 +18,7 @@ class ActionCable.ConnectionMonitor
|
||||||
|
|
||||||
disconnected: ->
|
disconnected: ->
|
||||||
@disconnectedAt = now()
|
@disconnectedAt = now()
|
||||||
|
ActionCable.log("ConnectionMonitor disconnected")
|
||||||
|
|
||||||
ping: ->
|
ping: ->
|
||||||
@pingedAt = now()
|
@pingedAt = now()
|
||||||
|
|
Loading…
Reference in a new issue