v5.2.3 - Show latest stable - 0 notes - Class: 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.

Show source
Register or log in to add new notes.