Skip to content

Refresh Realtime SFU DataChannel example - #31

Merged
nils-ohlmeier merged 1 commit into
cloudflare:mainfrom
rcccf:rchen/realtime-datachannel-refresh
Sep 8, 2026
Merged

Refresh Realtime SFU DataChannel example#31
nils-ohlmeier merged 1 commit into
cloudflare:mainfrom
rcccf:rchen/realtime-datachannel-refresh

Conversation

@rcccf

@rcccf rcccf commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

The previous browser-only sample exposed the SFU bearer token and focused on timing measurements without current channel controls or cleanup. This replaces it with a TypeScript browser and localhost server that reads credentials from an ignored .dev.vars file.

The example demonstrates reliable ordered delivery, a bounded waitForAck readiness gate, canReply, and unordered zero-retransmission state. It serializes SDP mutations through renegotiation, validates API responses, and makes setup and teardown retryable and idempotent.

Strict typechecking, focused tests, generated-browser credential scanning, and a live Chrome run cover the documented message and cleanup paths. Repository scanning now skips ignored local secrets while still checking tracked and unignored files.

The previous browser-only sample exposed the SFU bearer token and
focused on timing measurements without current channel controls or
cleanup. This replaces it with a TypeScript browser and localhost
server that reads credentials from an ignored .dev.vars file.

The example demonstrates reliable ordered delivery, a bounded
waitForAck readiness gate, canReply, and unordered zero-retransmission
state. It serializes SDP mutations through renegotiation, validates API
responses, and makes setup and teardown retryable and idempotent.

Strict typechecking, focused tests, generated-browser credential
scanning, and a live Chrome run cover the documented message and
cleanup paths. Repository scanning now skips ignored local secrets
while still checking tracked and unignored files.
@nils-ohlmeier
nils-ohlmeier merged commit 3486342 into cloudflare:main Sep 8, 2026
3 checks passed
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.

2 participants