Package 

Class WebSocketConnection


  • 
    public final class WebSocketConnection
    extends BaseConnection
                        

    WebSocket transport for ElevenLabs Conversational AI.

    Used for text-only sessions where LiveKit/WebRTC would tear down the room after a few seconds because no audio/video tracks are published. Speaks the same JSON event protocol as the existing data channel; serialization and parsing are reused from ConversationEventParser.