JP Journal · bounded offline policy lab

WebSocket backpressure lab

Replay the same message envelopes through a stream-pressure policy and a classic application-owned byte cap. Compare admission, queued bytes, delivery, close, abort, and fallback without contacting a server.

Experimental status: WebSocketStream is non-standard, experimental, and available in limited browsers. This lab feature-detects the current browser at runtime and displays that observation separately from the selectable simulation scenario. A semantic classic WebSocket fallback remains mandatory. Capability is not product fitness.

Matched trace

At most 40 messages, 80 ticks, and 81,920 planned bytes. A deterministic fake transport owns the virtual clock. The scenario never overrides the runtime-detected capability shown above.

Receipt summary

Proof contract