aboutsummaryrefslogtreecommitdiffstats
path: root/lib/assets/javascripts/cable/subscriptions.js.coffee
diff options
context:
space:
mode:
authorLachlan Sylvester <lachlan.sylvester@publicisfrontfoot.com.au>2015-07-09 17:21:11 +1000
committerLachlan Sylvester <lachlan.sylvester@publicisfrontfoot.com.au>2015-07-09 17:21:11 +1000
commit79b05aece11e5a82a648e5a4893ff75e38334d07 (patch)
tree0b92e8266a1b67e75781c86fbf3f3f9369f42997 /lib/assets/javascripts/cable/subscriptions.js.coffee
parent2253ebd3cef76db40acd32a414bf423f0a43a443 (diff)
downloadrails-79b05aece11e5a82a648e5a4893ff75e38334d07.tar.gz
rails-79b05aece11e5a82a648e5a4893ff75e38334d07.tar.bz2
rails-79b05aece11e5a82a648e5a4893ff75e38334d07.zip
update documentation to use websocket protocol
Diffstat (limited to 'lib/assets/javascripts/cable/subscriptions.js.coffee')
-rw-r--r--lib/assets/javascripts/cable/subscriptions.js.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/assets/javascripts/cable/subscriptions.js.coffee b/lib/assets/javascripts/cable/subscriptions.js.coffee
index e1dfff7511..3bc53f2d6a 100644
--- a/lib/assets/javascripts/cable/subscriptions.js.coffee
+++ b/lib/assets/javascripts/cable/subscriptions.js.coffee
@@ -2,7 +2,7 @@
# us Cable.Subscriptions#create, and it should be called through the consumer like so:
#
# @App = {}
-# App.cable = Cable.createConsumer "http://example.com/accounts/1"
+# App.cable = Cable.createConsumer "ws://example.com/accounts/1"
# App.appearance = App.cable.subscriptions.create "AppearanceChannel"
#
# For more details on how you'd configure an actual channel subscription, see Cable.Subscription.