Quick answer: Create the data channel with ordered: false and a maxRetransmits or maxPacketLifeTime limit so stale state is not retransmitted and never blocks newer state.

RTCDataChannel defaults to TCP-like ordered reliable delivery, which is wrong for real-time state. SCTP supports unordered, partially reliable modes that fit games where the newest update supersedes lost ones.

How to fix it

1. Configure partial reliability

Create the channel with {ordered: false, maxRetransmits: 0} for transient state so the browser never retransmits or reorders, eliminating head-of-line blocking.

2. Use a separate reliable channel for events

Open a second ordered reliable channel for one-shot events like scoring, keeping the high-frequency channel unordered and lossy.

3. Send the latest state, not deltas, when unreliable

On the unordered channel send self-contained snapshots so a dropped packet is harmless; the next one fully replaces it without needing the lost one.

Catching the ones you can't reproduce

The hardest version of this to fix is the one you can't reproduce — it only happens on a player's hardware, OS, driver, or save state, under conditions that simply aren't present on your machine. A report that says “it crashed” or “it froze” gives you nothing to act on, so the bug survives release after release while quietly costing you players.

Automatic error capture closes that gap. Each failure arrives with its full stack trace, the device and OS, the build number, and a breadcrumb trail of what the player did right before it broke, so even a failure you have never seen becomes a specific, reproducible issue. Fold identical failures into one signature ranked by how many players each hits, and your worklist sorts itself worst-first instead of arriving as a stream of vague complaints.

This is where a tool like Bugnet earns its place. Its SDK captures every HTML5 error automatically with the full stack trace plus device, OS, memory, build, and game-state context, folds duplicates into one grouped issue with an occurrence count, and ties each to the build it first appeared on — so you fix the problem that hurts the most players first and confirm it is gone when its signature disappears from the next release.

The errors you never hear about are the ones quietly costing you players. Visibility turns them into a worklist.