feross / feross/simple-peer

Implement ICE restarts

Open
#579 13 comments 9 reactions 1 assignee Claimed by @t-mullen View on GitHub
feature request
Dominant language
JavaScript
Stars
7.8k
Forks
983
PR merge metrics
No merged PRs in 30d

Description

When network conditions change or the current route is congested, it's possible to restart ICE and gather/select a new candidate pair. Apparently this happens very frequently with cellular networks or with certain types of NATs.

Restart is done by calling `createOffer` with the `iceRestart` option when `iceConnectionState == 'failed'`.

As an optimization, ICE restart can be done preemptively when `iceConnectionState == 'disconnected'` (before `'failed'`) and it won't immediately bounce back to `connected`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.