method

stream_from

rails latest stable - Class: ActionCable::Channel::Streams
stream_from(broadcasting, callback = nil, coder: nil, &block)
public

Start streaming from the named broadcasting pubsub queue. Optionally, you can pass a callback that’ll be used instead of the default of just transmitting the updates straight to the subscriber. Pass coder: ActiveSupport::JSON to decode messages as JSON before passing to the callback. Defaults to coder: nil which does no decoding, passes raw messages.