diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/action_cable/channel/base.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/action_cable/channel/base.rb b/lib/action_cable/channel/base.rb index 832c8cc314..9cfeb4b73a 100644 --- a/lib/action_cable/channel/base.rb +++ b/lib/action_cable/channel/base.rb @@ -10,7 +10,7 @@ module ActionCable on_unsubscribe :disconnect - attr_reader :params + attr_reader :params, :connection class_attribute :channel_name @@ -61,7 +61,7 @@ module ActionCable end def broadcast(data) - @connection.broadcast({ identifier: @channel_identifier, message: data }.to_json) + connection.broadcast({ identifier: @channel_identifier, message: data }.to_json) end def start_periodic_timers |