aboutsummaryrefslogtreecommitdiffstats
path: root/lib/assets/javascripts/cable/connection_monitor.js.coffee
diff options
context:
space:
mode:
authorJavan Makhmali <javan@javan.us>2015-06-26 10:24:29 -0400
committerJavan Makhmali <javan@javan.us>2015-06-26 10:24:29 -0400
commit5541b8fcaf9ec40e6f16c50cb45030838a3e3450 (patch)
treea7792ab3b2056173dac7a1518b87e7abce0a3c7e /lib/assets/javascripts/cable/connection_monitor.js.coffee
parent315c0fbf1942429c1bcb4f862dd18fb7a585231c (diff)
downloadrails-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.coffee2
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()