Skip to content

WebsocketEndpoint

Kenan Genjac edited this page Feb 18, 2025 · 1 revision

extends Endpoint



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

@Override
public void onParticipantJoined(ParticipantJoinedEvent participantJoinedEvent) {
    Participant participant = participantJoinedEvent.getParticipant();
    Endpoint endpoint = participant.getEndpoint();
    Log.d("WebRTC", "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

@Override
public void onParticipantJoined(ParticipantJoinedEvent participantJoinedEvent) {
    Participant participant = participantJoinedEvent.getParticipant();
    Endpoint endpoint = participant.getEndpoint();
    Log.d("WebRTC", "Display identifier of the participant on this endpoint: " + endpoint.displayIdentifier());
}



getWebsocketEndpointConfigId()

Description

Getter for the websocketEndpointConfigId field.

Arguments

  • none

Returns

  • String - Value of the websocketEndpointConfigId field representing the ID of your websocket endpoint configuration.

Example

@Override
public void onParticipantJoined(ParticipantJoinedEvent participantJoinedEvent) {
    Participant participant = participantJoinedEvent.getParticipant();
    Endpoint endpoint = participant.getEndpoint();
    if (endpoint instanceof WebsocketEndpoint wsEndpoint) {
        Log.d("WebRTC", "Websocket endpoint config ID: " + wsEndpoint.getWebsocketEndpointConfigId());
    }
}

Tutorials

Migration guides

Reference documentation

Clone this wiki locally