Skip to content

feat: add configurable ICE recovery to the client API - #568

Merged
devopvoid merged 1 commit into
mainfrom
feat/client-connection-recovery
Nov 8, 2026
Merged

devopvoid merged 1 commit into
mainfrom
feat/client-connection-recovery

Conversation

@devopvoid

Copy link
Copy Markdown
Owner

Automatic client peers currently need application-managed ICE recovery, while WHIP and WHEP use a fixed restart rule. Add an opt-in RecoveryPolicy shared by automatic peers and HTTP sessions, with a disconnection grace period, bounded attempts, exponential backoff, asynchronous ICE-server refresh and progress/exhaustion events.

Recovery succeeds only when connectivity returns. Failure notifications do not overlap restart exchanges, close cancels retries, and stale credential results cannot alter a recovered or closed peer. HTTP sessions retain their existing default behavior unless a policy is supplied. Signaling reconnection and creating a replacement session remain explicit application responsibilities; recovery keeps the existing peer, tracks and data channels. Update the client guide and examples to explain those boundaries.

@devopvoid
devopvoid merged commit 62bf50a into main Nov 8, 2026
26 checks passed
@devopvoid
devopvoid deleted the feat/client-connection-recovery branch November 8, 2026 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant