1
0
Fork 0
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:
Matthew Draper 2016-03-04 00:37:03 +10:30
commit c944ad7323
2 changed files with 2 additions and 0 deletions

View file

@ -101,4 +101,5 @@ class ActionCable.Connection
disconnect: ->
return if @disconnected
@disconnected = true
@consumer.connectionMonitor.disconnected()
@consumer.subscriptions.notifyAll("disconnected")

View file

@ -18,6 +18,7 @@ class ActionCable.ConnectionMonitor
disconnected: ->
@disconnectedAt = now()
ActionCable.log("ConnectionMonitor disconnected")
ping: ->
@pingedAt = now()