diff options
Diffstat (limited to 'lib/assets/javascripts/cable.js.coffee')
-rw-r--r-- | lib/assets/javascripts/cable.js.coffee | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/assets/javascripts/cable.js.coffee b/lib/assets/javascripts/cable.js.coffee index fff64cd284..46cbf7bff0 100644 --- a/lib/assets/javascripts/cable.js.coffee +++ b/lib/assets/javascripts/cable.js.coffee @@ -3,7 +3,7 @@ class @Cable MAX_CONNECTION_INTERVAL: 5 * 1000 - PING_STALE_INTERVAL: 6 + PING_STALE_INTERVAL: 8 constructor: (@cableUrl) -> @subscribers = {} @@ -80,7 +80,7 @@ class @Cable @waitForPingTimeout = setTimeout => console.log "Ping took too long to arrive. Reconnecting.." - @connection?.close() + @reconnect() , @PING_STALE_INTERVAL * 1000 clearPingWaitTimeout: => |