1
0
Fork 0
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:
Daniel Rhodes 2016-03-03 11:46:51 +01:00
parent 2c53e27992
commit 78b0ac3259
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()