Bead demo

Connection: connecting… Identity: logged out

A client and a server, on one port A client, and its server in a Web Worker

Bead is a binary call protocol, one surface in TypeScript, C# and Rust, over a WebSocket, over HTTP or in a Web Worker. Try a scene: its result shows in its card, and the wire shows what crossed. Its source is on GitHub.

  1. Log in as a writer
  2. Subscribe, then burst
  3. Send a glyph, or start a slow call and cancel it

Who you are

An access token, a JWT each call presents in its header: a read needs one that holds, a write one whose scope holds write.

Identity

logged out

—

A counter, paced

Subscribe, then burst: five changes come as two notifications, paced — the first, then the latest — and five signals merge into two reads.

Counter

—

2 subscriptions: the value, paced; the signal, merged by the page

Last burst —

—

8 MiB, in chunks

A glyph drawn at random crosses in chunks, each sent as the other end grants credit.

Glyph

none yet: send one, or receive one

—

Calls that end otherwise

Slow, cancelled, timed out, failed — and the server asking back.

Result

—