Gemini.Streaming.Manager (GeminiEx v0.0.1)
View SourceGenServer for managing streaming connections and state.
This GenServer handles:
- Managing multiple concurrent streaming sessions
- Buffering and parsing Server-Sent Events
- Maintaining connection state and metadata
- Automatic reconnection and error recovery
Summary
Functions
Returns a specification to start this module under a supervisor.
Get information about a specific stream.
Get the current status of a stream.
List all active streams.
Start a new streaming session with contents and options. (Alternative signature for compatibility)
Start a new streaming session.
Stop a streaming session.
Subscribe to events from a streaming session.
Subscribe to events from a streaming session. (Alias for subscribe/2)
Unsubscribe from a streaming session.
Types
@type state() :: %{ streams: %{required(stream_id()) => stream_state()}, stream_counter: non_neg_integer() }
@type stream_id() :: String.t()
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Get information about a specific stream.
Get the current status of a stream.
List all active streams.
Start a new streaming session with contents and options. (Alternative signature for compatibility)
Start a new streaming session.
Returns a stream ID that can be used to subscribe to events.
Stop a streaming session.
Subscribe to events from a streaming session.
Subscribe to events from a streaming session. (Alias for subscribe/2)
Unsubscribe from a streaming session.