Stargate.Receiver.Dispatcher (stargate v0.2.0) View Source
Defines the Stargate.Receiver.Dispatcher
GenStage process
that functions as the producer in the pipeline, receiving messages
pushed from the reader or consumer socket and dispatching to the
rest of the pipeline.
Link to this section Summary
Functions
Push messages received over the reader or consumer connection into the GenStage processing pipeline for handling and acknowledgement. This is normally handled automatically by the websocket connection but can also be called directly for testing the receive pipeline.
Starts a Stargate.Receiver.Dispatcher
GenStage process and links it to
the calling process.
Link to this section Types
Specs
raw_message() :: String.t()
Link to this section Functions
Specs
push(GenServer.server(), [raw_message()] | raw_message()) :: :ok
Push messages received over the reader or consumer connection into the GenStage processing pipeline for handling and acknowledgement. This is normally handled automatically by the websocket connection but can also be called directly for testing the receive pipeline.
Specs
start_link(keyword()) :: GenServer.on_start()
Starts a Stargate.Receiver.Dispatcher
GenStage process and links it to
the calling process.