diff options
author | Javan Makhmali <javan@javan.us> | 2015-06-26 10:24:29 -0400 |
---|---|---|
committer | Javan Makhmali <javan@javan.us> | 2015-06-26 10:24:29 -0400 |
commit | 5541b8fcaf9ec40e6f16c50cb45030838a3e3450 (patch) | |
tree | a7792ab3b2056173dac7a1518b87e7abce0a3c7e /lib/assets/javascripts/cable/connection_monitor.js.coffee | |
parent | 315c0fbf1942429c1bcb4f862dd18fb7a585231c (diff) | |
download | rails-5541b8fcaf9ec40e6f16c50cb45030838a3e3450.tar.gz rails-5541b8fcaf9ec40e6f16c50cb45030838a3e3450.tar.bz2 rails-5541b8fcaf9ec40e6f16c50cb45030838a3e3450.zip |
Update connection API with #open, #close, #reopen
Diffstat (limited to 'lib/assets/javascripts/cable/connection_monitor.js.coffee')
-rw-r--r-- | lib/assets/javascripts/cable/connection_monitor.js.coffee | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/assets/javascripts/cable/connection_monitor.js.coffee b/lib/assets/javascripts/cable/connection_monitor.js.coffee index cf36b2a457..bb4ee8f7f6 100644 --- a/lib/assets/javascripts/cable/connection_monitor.js.coffee +++ b/lib/assets/javascripts/cable/connection_monitor.js.coffee @@ -35,7 +35,7 @@ class Cable.ConnectionMonitor reconnect: -> console.log "Ping took too long to arrive. Reconnecting.." @connectionAttempts += 1 - @consumer.connection.connect() + @consumer.connection.reopen() now = -> new Date().getTime() |