SignalingClient.requestIceServers()

DESCRIPTION

Request a list of IceServers from the Signaling service.

The request uses the accessToken from the SingnalingClientOptions. If no accessToken is provided, only STUN servers and no TURN servers is returned. If an accessToken is provided in the options TURN servers are returned if the accessToken gives access to TURN servers.

This method is not used in standard Nabto examples since ICE servers are received from the device when using the Nabto default transport.

DECLARATION

requestIceServers(): Promise<Array<RTCIceServer>>

RETURNS

Promise resolving to a list of ICE servers