instance method
stream_transmitter
Ruby on Rails 6.1.7.10
Since v5.2.8.1 PrivateSignature
stream_transmitter(handler = identity_handler, broadcasting:)
No documentation comment.
Parameters
-
handleropt = identity_handler -
broadcastingkeyreq
Source
# File actioncable/lib/action_cable/channel/streams.rb, line 189
def stream_transmitter(handler = identity_handler, broadcasting:)
via = "streamed from #{broadcasting}"
-> (message) do
transmit handler.(message), via: via
end
end
Defined in actioncable/lib/action_cable/channel/streams.rb line 189
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionCable::Channel::Streams