Skip to content

Every version stays available at its URL, and a published version never changes.

version date
1.1.3 2026-11-24 Fixed: a hidden phone page no longer stays “connected” at one of its peers while it is away (an app’s cursor for it stayed); it now repeats its goodbye until it is shown. Same API; same wire version.
1.1.2 2026-11-22 Fixed: a peer on slow links (a distant relay) no longer goes silent for seconds after someone joins; every peer now agrees on the routes. Same API; same wire version.
1.1.1 2026-11-22 Fixed: large reliable transfers through a TURN relay complete (5 MB in about 13 s on jsflow’s relays; before, they stalled), and the peer sending one no longer goes down and up meanwhile. Same API; same wire version.
1.1.0 2026-11-21 room.path(peer) and the path event, JoinError.docs, the unknown error code, and the reconnect and linking fixes listed under 1.1.0-rc.1: the same code (npm install jsflow-sdk). Additions only; same wire version.
1.1.0-rc.1 2026-11-20 The release candidate for 1.1.0 (npm install jsflow-sdk@next). Added: room.path(peer) and the path event (direct, relay, or through other peers), JoinError.docs (a link to the error’s entry), the unknown error code. Fixed: after a service restart members reconnect spread out; a join no longer waits seconds when the member offering it a connection disappears; two peers reaching each other two ways at once keep their new connection.
1.0.0 2026-11-19 The first stable release: the 1.0 API on wire version 2, the same code as 1.0.0-rc.3 (npm install jsflow-sdk).
1.0.0-rc.3 2026-11-18 Fixed: two peers no longer fail to link for 10 seconds or more when one joins through the other while the other is also reaching for it (most likely with a relay configured). Same API.
1.0.0-rc.2 2026-11-18 Fixed: a reliable message (sendReliable) is never delivered twice across a page reload; one the sender cannot confirm is reported undelivered. Same API.
1.0.0-rc.1 2026-11-18 The release candidate for 1.0.0, on wire version 2: signed broadcasts, join tickets, JoinError codes, the evicted and suspended states, region pinning, a 1,052-byte datagram. Published under the npm tag next. Breaking changes from 0.1 are listed below.
0.1.3 2026-11-17 Security: a room member could make a reliable message (sendReliable) appear to come from another peer by broadcasting on the reliable channel; receivers now drop it. Same API.
0.1.2 2026-11-01 Peers that join as a room starts find the rest of the room within a few seconds; some had waited 11–13 s. Same API.
0.1.1 2026-10-30 leave() and closing or reloading the page free the room slot at once; a dropped peer’s slot frees after 15 s; iceTransportPolicy: 'relay'.
0.1.0 2026-10-30 First version.

Everything here is in jsflow-sdk 1.0.0-rc.2 and applies to 1.0.0 as well. The API in jsflow.d.ts is the contract from 1.0.

  1. One wire version per room. 1.0 speaks wire version 2 only; 0.1 speaks wire 1. Both work against the service, but a room runs the version of its first joiner, and a peer of the other version is refused with JoinError code wire. Ship 1.0 to all your clients at once, or give 1.0 rooms new names (for example a -w2 suffix; WIRE is exported for it) while old pages are still open.
  2. MAX_DATAGRAM is 1,052 bytes (it was 1,099). send() and broadcast() throw a RangeError above it, because every broadcast now carries a signature. If you split data by size, split at 1,052 or a little under; use sendReliable() (up to MAX_RELIABLE, 65,536) for anything larger.
  3. join() rejects with a JoinError (it was a plain Error whose message held the HTTP status and body). Branch on e.code, one of the error codes: unknown_app (was 403 app), origin (was 403 origin), room_full (was a bare 409), rate (was 429); new: ticket_required, ticket_invalid, ticket_expired, blocked, quota, wire and sdk_unsupported; raised by the SDK itself with status 0: unsupported_browser and worker_failed. A network failure still rejects with a TypeError.
  4. Two new states, with events: evicted (your backend removed this peer; final) and suspended (your cost cap is reached; links stay up, new joins are refused; it returns to connected by itself). An exhaustive switch on State needs both cases.
  5. Minimum browsers: Chrome and Edge 137, Safari 17, Firefox 130. Every peer seals and signs with Web Crypto X25519 and Ed25519; an older browser gets unsupported_browser before any request (0.1 joined it and ran its links unsealed).
  6. Broadcasts are signed. A forged broadcast is dropped where it arrives, so from on a broadcast is the real sender. Broadcasts are still not sealed.
  7. Tickets (optional, recommended). Your backend signs a short-lived ticket with the app’s secret key and the page passes it as join({ ticket }), a string or a function the SDK calls once for every join() call (a return from away and a token refresh keep the peer’s identity and need no ticket). With “Require join tickets” on for the app, a join without one is refused. room.user(peerId) then gives each peer’s user id.
  8. CDN URLs. A version directory holds two files, jsflow.js and worker.js (0.1 had a tree of files), and sri.json with the integrity hashes. worker.js must stay next to jsflow.js. On npm the package is jsflow-sdk. Your Content-Security-Policy needs connect-src https://signal.jsflow.com https://*.signal.jsflow.com (see loading the SDK).
  9. onMetric(name, value, detail?): value is now always a number (1 for an event) and the measurement’s data is detail. Metric names are diagnostic and may change in any minor release.
  10. Removed: the undocumented lab options (lab, want, pool, target, max) and room.lab(). app (your publishable key) is required: join() throws a TypeError without it.

New in 1.0: join tickets and room.user(peerId), room.ping(peer), join({ region }) for a region-pinned app, join({ worker }) for a self-hosted worker, tokens and relay credentials that refresh so rooms live past six hours, and a hidden page that holds no slot and accrues no time while away.