Arguments handed to InworldRealtime.connectRealtimeSocket: the authenticated URL plus the lifecycle callbacks. The seam owns the entire WebSocket dance so tests substitute it wholesale with an in-memory fake — no network, no real socket.
Invoked when the WebSocket closes.
Invoked on a WebSocket-level error (fatal — the session is unusable).
Invoked with each parsed inbound frame.
The full wss://…?token=… URL.
wss://…?token=…
Arguments handed to InworldRealtime.connectRealtimeSocket: the authenticated URL plus the lifecycle callbacks. The seam owns the entire WebSocket dance so tests substitute it wholesale with an in-memory fake — no network, no real socket.