Hermes.SSE (hermes_mcp v0.3.3)
Server-Sent Events (SSE) utilities, HTTP client abstraction and HTTP streaming handling.
Summary
Functions
Connects to a server-sent event stream.
Functions
@spec connect(String.t(), map(), Keyword.t()) :: Enumerable.t()
Connects to a server-sent event stream.
Parameters
server_url
- the URL of the server to connect to.headers
- additional headers to send with the request.opts
- additional options to pass to the HTTP client.
Examples
iex> Hermes.SSE.connect("http://localhost:4000")
#Stream<[ref: 1, task: #PID<0.123.0>]>