WebsocketEndpoint - infobip/infobip-rtc-js GitHub Wiki

extends Endpoint



websocketEndpointConfigId : string

Readonly property representing the ID of your websocket endpoint configuration.

constructor(identifier, websocketEndpointConfigId)

Description

Creates a new instance of WebsocketEndpoint.

Arguments

  • identifier: string - Identifier of the participant on this endpoint
  • websocketEndpointConfigId: string - ID of your websocket endpoint configuration.

Example

let websocketEndpoint = new WebscoketEndpoint("identifier", "websocketEndpoitntConfigId");
console.log(`This endpoints identifier is: ${webrtcEndpoint.identifier} and the display identifier is: ${webrtcEndpoint.displayIdentifier}`);



type

Description

Returns WEBSOCKET as the type of this endpoint.

Arguments

  • none

Returns

  • EndpointType Identifier of the participant on this endpoint

Example

console.log(`Type of this endpoint: ${endpoint.type}`);



identifier

Description

Returns the value of the identifier on this endpoint represented by the participant's identifier.

Arguments

  • none

Returns

  • string - Identifier of the participant on this endpoint

Example

console.log(`Identifier of the participant on this endpoint: ${endpoint.identifier}`);



displayIdentifier

Description

Returns the value of the display identifier on this endpoint represented by the participant's identifier.

Arguments

  • none

Returns

  • string - Display identifier of the participant on this endpoint

Example

console.log(`Display identifier of the participant on this endpoint: ${endpoint.displayIdentifier}`);
⚠️ **GitHub.com Fallback** ⚠️