kitto v0.2.0 Kitto.Notifier
Summary
Functions
Emits a server-sent event to each of the active connections with the given topic and payload
Emits a server-sent event to each of the active connections with the given topic and payload to a specific process
Returns cached broadcasts
Caches the given payload with the key provided as the first argument
Resets the broadcast cache
Returns the registered connections
Removes a connection from the connections list
Callback implementation for Supervisor.init/1
Every new SSE connection gets all the cached payloads for each job. The last broadcasted payload of each job is cached
Updates the list of connections to use for broadcasting
Starts the connections cache agent
Starts the notifier supervision tree
Starts the notifier cache agent
Functions
Emits a server-sent event to each of the active connections with the given topic and payload
Emits a server-sent event to each of the active connections with the given topic and payload to a specific process
Callback implementation for Supervisor.init/1
.
Every new SSE connection gets all the cached payloads for each job. The last broadcasted payload of each job is cached