WebsocketEndpoint - infobip/infobip-rtc-js GitHub Wiki
extends Endpoint
websocketEndpointConfigId: Stringconstructor(identifier: string, websocketEndpointConfigId: string)type: EndpointTypeidentifier: stringdisplayIdentifier: string
websocketEndpointConfigId : string
Readonly property representing the ID of your websocket endpoint configuration.
Creates a new instance of WebsocketEndpoint.
-
identifier:string- Identifier of the participant on this endpoint -
websocketEndpointConfigId:string- ID of your websocket endpoint configuration.
let websocketEndpoint = new WebscoketEndpoint("identifier", "websocketEndpoitntConfigId");
console.log(`This endpoints identifier is: ${webrtcEndpoint.identifier} and the display identifier is: ${webrtcEndpoint.displayIdentifier}`);Returns WEBSOCKET 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 identifier on this endpoint represented by the participant's identifier.
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 display identifier on this endpoint represented by the participant's identifier.
none
-
string- Display identifier of the participant on this endpoint
console.log(`Display identifier of the participant on this endpoint: ${endpoint.displayIdentifier}`);