A headless peer for the dot demo: it speaks the same wire format
(ALPN iroh-helloiroh-dot/0, 8-byte f32 x, f32 y frames) but just prints
every received position to the console instead of rendering a dot.
Uses the iroh JavaScript bindings
(@number0/iroh). Requires Node 20.3+.
npm installListen and print your endpoint id (paste it into the Connect field on a phone/desktop peer):
node read-dots.jsOr dial out to a peer's endpoint id:
node read-dots.js <endpoint-id>Either way, incoming frames print as:
[8afb782ee0] x=+0.412 y=-0.083
When dialing, the reader sends a single (0, 0) frame so the QUIC stream
becomes visible to the peer — your "dot" sits at the origin on their screen.