Flowdock
method

default_stream_handler

Importance_1
Ruby on Rails latest stable (v5.2.3) - 0 notes - Class: 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.

Show source
Register or log in to add new notes.