sse v0.4.0 SSE

Server Sent Events handler

Link to this section Summary

Functions

Deliver EventBus SSE events to the given process

Link to this section Types

Link to this type chunk()
chunk() :: SSE.Chunk.t()
Link to this type config()
config() :: map()
Link to this type conn()
conn() :: Plug.Conn.t()
Link to this type event_id()
event_id() :: integer() | String.t()
Link to this type event_shadow_with_config()
event_shadow_with_config() :: {config(), topic(), event_id()}
Link to this type matcher()
matcher() :: tuple()
Link to this type topic()
topic() :: atom()
Link to this type topic_or_topics()
topic_or_topics() :: topic() | topics()
Link to this type topics()
topics() :: [topic()]
Link to this type topics_with_chunk()
topics_with_chunk() :: {topic_or_topics(), chunk()}

Link to this section Functions

Link to this function process(event_shadow_with_config)

Deliver EventBus SSE events to the given process

Link to this function stream(conn, data, matcher \\ {SSE, {}})
stream(conn(), topics_with_chunk(), matcher()) :: conn()

Serv the SSE stream