The server-built connect config (system instruction, tools, modalities, transcription).
The server-minted ephemeral auth token (used as the API key on a v1alpha client). Empty on a relay session.
The Gemini Live model id to open the session against.
Invoked when the websocket closes.
Invoked on a websocket-level error (fatal).
Invoked for every LiveServerMessage the server emits over the session.
OptionalRelayA relay session's relay URL, as minted (ClientRealtimeSessionConfig.RelayUrl). It carries the relay's ticket:
never log it or put it in an error message.
OptionalTransportHow the browser reaches the provider, as minted (ClientRealtimeSessionConfig.Transport); absent means direct.
Arguments handed to GeminiRealtimeClient.connectLiveSession. Bundles the resolved model + connect config (from the server-minted
SessionConfig), the ephemeral token (or a relay session's transport and relay URL), and the lifecycle callbacks so the seam owns the entirelive.connectcall and tests can substitute it wholesale.