View Source NLdoc.ServerSentEvents.Response (NLdoc.ServerSentEvents v1.0.5)
Server-Sent Events (SSE) helper.
Summary
Types
@type plug_return() :: {:ok, Plug.Conn.t()} | {:error, term()} | no_return()
Functions
@spec send_comment(conn :: Plug.Conn.t(), comment :: String.t()) :: plug_return()
@spec send_event(conn :: Plug.Conn.t(), event :: NLdoc.ServerSentEvents.Event.t()) :: plug_return()
@spec setup_chunking(conn :: Plug.Conn.t()) :: Plug.Conn.t() | no_return()