aboutsummaryrefslogtreecommitdiffstats
path: root/lib/assets/javascripts/cable/channel.js.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'lib/assets/javascripts/cable/channel.js.coffee')
-rw-r--r--lib/assets/javascripts/cable/channel.js.coffee6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/assets/javascripts/cable/channel.js.coffee b/lib/assets/javascripts/cable/channel.js.coffee
index 645a44e140..bbdc9c5589 100644
--- a/lib/assets/javascripts/cable/channel.js.coffee
+++ b/lib/assets/javascripts/cable/channel.js.coffee
@@ -5,11 +5,11 @@ class Cable.Channel
@cable.subscribers.add(@identifier, this)
# Perform a channel action with the optional data passed as an attribute
- sendAction: (action, data = {}) ->
+ perform: (action, data = {}) ->
data.action = action
- @sendMessage(data)
+ @send(data)
- sendMessage: (data) ->
+ send: (data) ->
@cable.sendMessage(@identifier, JSON.stringify(data))
unsubscribe: ->