Connect to a Twilio Group Room. The returned promise resolves once the Room emits connected, and rejects with a TwilioError if it emits connectFailure first (the partially-built Room is disposed on failure).
connected
connectFailure
A Twilio access token with a Video grant.
Room name, tracks to publish on join, and feature toggles.
A promise resolving to the connected Room.
(as a rejection) If token is not a non-empty string, or options is not an object.
token
options
(as a rejection) If options.networkQuality verbosities are out of range.
options.networkQuality
const audioTrack = createLocalAudioTrack('mic');const room = await connect(token, { name: 'my-room', audioTracks: [audioTrack] }); Copy
const audioTrack = createLocalAudioTrack('mic');const room = await connect(token, { name: 'my-room', audioTracks: [audioTrack] });
Connect to a Twilio Group Room. The returned promise resolves once the Room emits
connected, and rejects with a TwilioError if it emitsconnectFailurefirst (the partially-built Room is disposed on failure).