Fountain.SSE (fountain_sdk v0.1.0)

Copy Markdown View Source

SSE parsing and reconnecting Fountain event streams.

Summary

Functions

Parses an enumerable of binary chunks into SSE message maps.

Returns a reconnecting enumerable for a conversation's event feed.

Returns a reconnecting enumerable for any Fountain SSE endpoint.

Functions

parse_sse(chunks)

Parses an enumerable of binary chunks into SSE message maps.

stream_events(http, conversation_id, opts \\ [])

Returns a reconnecting enumerable for a conversation's event feed.

stream_path(http, path, opts \\ [])

Returns a reconnecting enumerable for any Fountain SSE endpoint.