instance method
stream_transmitter
Ruby on Rails edge
Since v5.0.7.2 Private — implementation detail, not part of the public APISignature
stream_transmitter(handler = nil, broadcasting:)
No documentation comment.
Parameters
-
handleropt = nil -
broadcastingkeyreq
Source
# File actioncable/lib/action_cable/channel/streams.rb, line 216
def stream_transmitter(handler = nil, broadcasting:)
via = "streamed from #{broadcasting}"
-> (message) do
message = handler.(message) if handler
transmit message, via: via
end
end
Defined in actioncable/lib/action_cable/channel/streams.rb line 216
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionCable::Channel::Streams