CrossBus

Draw in one tab, see it in every tab

Open this page in a second tab or window and place them side by side. Strokes and cursors travel between tabs as CrossBus signals over a BroadcastChannel, with no server involved.

Draw here. Every connected tab draws the same stroke.

Strokes are sent every 40 ms while you draw; cursors up to 30 times a second.

This tab

—

Connected tabs

    Only this tab is connected. Open another tab, then draw in either one.

    Traffic from this tab

    Tabs
    1
    Last delivery
    —
    Signals sent
    0
    Received
    0

    Delivery time compares wall clocks of two tabs, so it has millisecond resolution.

    Bus trace · signals between this tab and the others

    • request 0
    • response 0
    • signal 0
    • error 0
    One BroadcastChannel reaches every other tab, so they share one lane. Presence announcements run every 2.5 s.

    How it is wired

    Each tab binds the BroadcastChannel to one peer and only uses signals. A request would be ambiguous here: every other tab would receive it. The excerpt is loaded from the file this page runs.

    Next demo Secure channel → Try to replay, forge and tamper with an encrypted channel.