diff options
Diffstat (limited to 'lib/assets/javascripts/cable/consumer.js.coffee')
-rw-r--r-- | lib/assets/javascripts/cable/consumer.js.coffee | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/assets/javascripts/cable/consumer.js.coffee b/lib/assets/javascripts/cable/consumer.js.coffee index b01ae586aa..1df6536831 100644 --- a/lib/assets/javascripts/cable/consumer.js.coffee +++ b/lib/assets/javascripts/cable/consumer.js.coffee @@ -12,7 +12,7 @@ # # @App = {} # App.cable = Cable.createConsumer "http://example.com/accounts/1" -# App.appearance = App.cable.createSubscription "AppearanceChannel" +# App.appearance = App.cable.subscriptions.create "AppearanceChannel" # # For more details on how you'd configure an actual channel subscription, see Cable.Subscription. class Cable.Consumer @@ -21,11 +21,6 @@ class Cable.Consumer @connection = new Cable.Connection this @connectionMonitor = new Cable.ConnectionMonitor this - createSubscription: (channelName, mixin) -> - channel = channelName - params = if typeof channel is "object" then channel else {channel} - new Cable.Subscription this, params, mixin - send: (data) -> @connection.send(data) |