Create an instance of WebRTCConnector class with optional session credentials.
const webRTC = await new WebRTCConnector(topia, { credentials: { interactivePublicKey: "examplePublicKey", interactiveNonce: "exampleNonce", assetId: "exampleDroppedAssetId", profileId: "exampleProfileId", visitorId: 1, urlSlug: "exampleUrlSlug" }}); Copy
const webRTC = await new WebRTCConnector(topia, { credentials: { interactivePublicKey: "examplePublicKey", interactiveNonce: "exampleNonce", assetId: "exampleDroppedAssetId", profileId: "exampleProfileId", visitorId: 1, urlSlug: "exampleUrlSlug" }});
Optional
Get twilio
await webRTCConnector.getTwilioConfig(); Copy
await webRTCConnector.getTwilioConfig();
Create an instance of WebRTCConnector class with optional session credentials.
Example