.connect(server, _state)
server: GatewayVoiceServerUpdateDispatchData, _state: GatewayVoiceStateUpdateDispatchData → Promise<void>
Connect to the LiveKit room using voice server and state from the gateway. Called internally by VoiceManager; typically not used directly.
- server
GatewayVoiceServerUpdateDispatchDataVoice server update data (endpoint, token)- _state
GatewayVoiceStateUpdateDispatchDataVoice state update data (session, channel)
await liveKitRtcConnection.connect(server, _state);