sip.js.sessiondescriptionhandler.waitforicegatheringcomplete.md

September 26, 2022 ยท View on GitHub

Home > sip.js > SessionDescriptionHandler > waitForIceGatheringComplete

SessionDescriptionHandler.waitForIceGatheringComplete() method

Wait for ICE gathering to complete.

Signature:

protected waitForIceGatheringComplete(restart?: boolean, timeout?: number): Promise<void>;

Parameters

ParameterTypeDescription
restartbooleanIf true, waits if current state is "complete" (waits for transition to "complete").
timeoutnumberMilliseconds after which waiting times out. No timeout if 0.

Returns:

Promise<void>