aboutsummaryrefslogtreecommitdiffstats
path: root/lib/action_cable/channel/base.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/action_cable/channel/base.rb')
-rw-r--r--lib/action_cable/channel/base.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/action_cable/channel/base.rb b/lib/action_cable/channel/base.rb
index 82c1a14b49..e091d08c9c 100644
--- a/lib/action_cable/channel/base.rb
+++ b/lib/action_cable/channel/base.rb
@@ -45,8 +45,8 @@ module ActionCable
# Override in subclasses
end
- def publish(data)
- @connection.publish(data.merge(identifier: @channel_identifier).to_json)
+ def broadcast(data)
+ @connection.broadcast(data.merge(identifier: @channel_identifier).to_json)
end
def start_periodic_timers