method
default_stream_handler
v8.0.0 -
Show latest stable
- Class:
ActionCable::Channel::Streams
default_stream_handler(broadcasting, coder:)private
May be overridden to change the default stream handling behavior which decodes JSON and transmits to the client.
TODO: Tests demonstrating this.
TODO: Room for optimization. Update transmit API to be coder-aware so we can no-op when pubsub and connection are both JSON-encoded. Then we can skip decode+encode if we’re just proxying messages.