Home > sip.js > SessionDescriptionHandler > waitForIceGatheringComplete
Wait for ICE gathering to complete.
Signature:
protected waitForIceGatheringComplete(restart?: boolean, timeout?: number): Promise<void>;| 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>