Skip to content

PhoneEndpoint

Adnan Elezović edited this page Aug 4, 2025 · 4 revisions

extends Endpoint



constructor(phoneNumber)

Description

Creates a new instance of PhoneEndpoint.

Arguments

  • phoneNumber: string - Phone number of the participant on this endpoint

Example

let phoneEndpoint = new PhoneEndpoint("phoneNumber");
console.log(`This endpoints identifier is: ${phoneEndpoint.identifier} and the display identifier is: ${phoneEndpoint.displayIdentifier}`);



type

Description

Returns PHONE 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 phone number.

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 phone number.

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}`);

Tutorials

Migration guides

Reference documentation

Clone this wiki locally