instance method
stream_handler
Ruby on Rails 6.0.6
Since v5.2.8.1 PrivateSignature
stream_handler(broadcasting, user_handler, coder: nil)
May be overridden to add instrumentation, logging, specialized error handling, or other forms of handler decoration.
TODO: Tests demonstrating this.
Parameters
-
broadcastingreq -
user_handlerreq -
coderkey = nil
Source
# File actioncable/lib/action_cable/channel/streams.rb, line 134
def stream_handler(broadcasting, user_handler, coder: nil)
if user_handler
stream_decoder user_handler, coder: coder
else
default_stream_handler broadcasting, coder: coder
end
end
Defined in actioncable/lib/action_cable/channel/streams.rb line 134
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionCable::Channel::Streams