From 79b05aece11e5a82a648e5a4893ff75e38334d07 Mon Sep 17 00:00:00 2001 From: Lachlan Sylvester Date: Thu, 9 Jul 2015 17:21:11 +1000 Subject: update documentation to use websocket protocol --- lib/assets/javascripts/cable/consumer.js.coffee | 4 ++-- lib/assets/javascripts/cable/subscriptions.js.coffee | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/assets') diff --git a/lib/assets/javascripts/cable/consumer.js.coffee b/lib/assets/javascripts/cable/consumer.js.coffee index 1df6536831..05a7398e79 100644 --- a/lib/assets/javascripts/cable/consumer.js.coffee +++ b/lib/assets/javascripts/cable/consumer.js.coffee @@ -3,7 +3,7 @@ #= require cable/subscriptions #= require cable/subscription -# The Cable.Consumer establishes the connection to a server-side Ruby Connection object. Once established, +# The Cable.Consumer establishes the connection to a server-side Ruby Connection object. Once established, # the Cable.ConnectionMonitor will ensure that its properly maintained through heartbeats and checking for stale updates. # The Consumer instance is also the gateway to establishing subscriptions to desired channels through the #createSubscription # method. @@ -11,7 +11,7 @@ # The following example shows how this can be setup: # # @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. 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. -- cgit v1.2.3