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