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
| Parameter | Type | Description |
|---|---|---|
| restart | boolean | If true, waits if current state is "complete" (waits for transition to "complete"). |
| timeout | number | Milliseconds after which waiting times out. No timeout if 0. |
Returns:
Promise<void>