提交 78b0ac32 编写于 作者: D Daniel Rhodes

ConnectionMonitor is once again notified of disconnect

上级 2c53e279
...@@ -101,4 +101,5 @@ class ActionCable.Connection ...@@ -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 ...@@ -18,6 +18,7 @@ class ActionCable.ConnectionMonitor
disconnected: -> disconnected: ->
@disconnectedAt = now() @disconnectedAt = now()
ActionCable.log("ConnectionMonitor disconnected")
ping: -> ping: ->
@pingedAt = now() @pingedAt = now()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册