- Defined in:
#stream_for(model, callback = nil) ⇒ Object
Start streaming the pubsub queue for the model in this channel. Optionally, you can pass a callback that'll be used instead of the default of just transmitting the updates straight to the subscriber.
83 84 85
# File 'lib/action_cable/channel/streams.rb', line 83 def stream_for(model, callback = nil) stream_from(broadcasting_for([ channel_name, model ]), callback) end