From 78b0ac32591b8d25fbc67f5292ed5575cb0d9c5a Mon Sep 17 00:00:00 2001 From: Daniel Rhodes Date: Thu, 3 Mar 2016 11:46:51 +0100 Subject: [PATCH] ConnectionMonitor is once again notified of disconnect --- .../app/assets/javascripts/action_cable/connection.coffee | 1 + .../assets/javascripts/action_cable/connection_monitor.coffee | 1 + 2 files changed, 2 insertions(+) diff --git a/actioncable/app/assets/javascripts/action_cable/connection.coffee b/actioncable/app/assets/javascripts/action_cable/connection.coffee index e8c9ae6bd0..25793ea3d3 100644 --- a/actioncable/app/assets/javascripts/action_cable/connection.coffee +++ b/actioncable/app/assets/javascripts/action_cable/connection.coffee @@ -101,4 +101,5 @@ class ActionCable.Connection disconnect: -> return if @disconnected @disconnected = true + @consumer.connectionMonitor.disconnected() @consumer.subscriptions.notifyAll("disconnected") diff --git a/actioncable/app/assets/javascripts/action_cable/connection_monitor.coffee b/actioncable/app/assets/javascripts/action_cable/connection_monitor.coffee index 740e86643e..904a426644 100644 --- a/actioncable/app/assets/javascripts/action_cable/connection_monitor.coffee +++ b/actioncable/app/assets/javascripts/action_cable/connection_monitor.coffee @@ -18,6 +18,7 @@ class ActionCable.ConnectionMonitor disconnected: -> @disconnectedAt = now() + ActionCable.log("ConnectionMonitor disconnected") ping: -> @pingedAt = now()