-
Notifications
You must be signed in to change notification settings - Fork 2
WebrtcEndpoint
Adnan Elezović edited this page Aug 4, 2025
·
4 revisions
extends Endpoint
constructor(identity: string, displayName: string)type: EndpointTypeidentifier: stringdisplayIdentifier: string | null
Creates a new instance of WebrtcEndpoint.
-
identity:string- Identifier of the participant on this endpoint -
displatName:string- Display name of the participant on this endpoint
let webrtcEndpoint = new WebrtcEndpoint("identity", "displayName");
console.log(`This endpoints identifier is: ${webrtcEndpoint.identifier} and the display identifier is: ${webrtcEndpoint.displayIdentifier}`);Returns WEBRTC as the type of this endpoint.
none
-
EndpointTypeIdentifier of the participant on this endpoint
console.log(`Type of this endpoint: ${endpoint.type}`);Returns the value of the display identifier on this endpoint represented by the participant's display name.
none
-
string- Identifier of the participant on this endpoint
console.log(`Identifier of the participant on this endpoint: ${endpoint.identifier}`);Returns the value of the participant's display identifier on this endpoint as a string.
none
-
string- Display identifier of the participant on this endpoint
console.log(`Display identifier of the participant on this endpoint: ${endpoint.displayIdentifier}`);