diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/action_cable/channel/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/action_cable/channel/base.rb b/lib/action_cable/channel/base.rb index fa284eccbc..1ede07d9e3 100644 --- a/lib/action_cable/channel/base.rb +++ b/lib/action_cable/channel/base.rb @@ -48,7 +48,7 @@ module ActionCable end def broadcast(data) - @connection.broadcast(data.merge(identifier: @channel_identifier).to_json) + @connection.broadcast({ identifier: @channel_identifier, message: data }.to_json) end def start_periodic_timers |