diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2015-01-16 22:19:47 +0530 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2015-01-16 22:19:47 +0530 |
commit | 61ea867f295b7872b8cb000e257236f70f1518cd (patch) | |
tree | 0152171116362733cee582e167f661d8e3918437 /lib/action_cable/channel/base.rb | |
parent | 449b3ca7b08c000c05100cc909fc29cbc9f365ee (diff) | |
download | rails-61ea867f295b7872b8cb000e257236f70f1518cd.tar.gz rails-61ea867f295b7872b8cb000e257236f70f1518cd.tar.bz2 rails-61ea867f295b7872b8cb000e257236f70f1518cd.zip |
Always pass the channel broadcast in message key
Diffstat (limited to 'lib/action_cable/channel/base.rb')
-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 |