Skip to content

Limits and measured performance

Peers per room, rooms at a time, and joins per minute. They are set when your app is created and you can lower them in the dashboard; the plan sets the ceiling. The demo app: 16 peers a room, 20 rooms, 120 joins a minute.

Request rate, joins per minute and open streams, generous enough for a whole office or classroom behind one IP. Tell us before you load-test: a script running many peers from one machine looks like an attack. We raise the limits for the test.

1,052 bytes per send or broadcast (MAX_DATAGRAM; it was 1,099 in 0.1, because every broadcast now carries a signature), 64 KiB per sendReliable (MAX_RELIABLE; UTF-8 bytes for strings), 1 MiB queued per peer, channels 0 to 13. A send or broadcast over 1,052 bytes throws a RangeError; use sendReliable for anything larger. If a link already holds 256 KB of unsent datagrams, new ones on it are dropped rather than sent late (the metric dgDropped counts them); sendReliable is never dropped.

One sender at 10 Hz × 150 bytes, plus reliable messages, against the live service, from one lab network. Real phone networks add their own latency.

room delivery latency p95 joins notes
30 peers, direct, 2 peers dropping every 30 s 100% 7 ms first message 1.3 s (p50) after joining no join refused
30 peers, all through the relay 99.66% 16 ms 1.6 s (p50) the lab’s internet link was losing packets
30 peers, everyone drops at once 100% before and after 7 ms everyone back in 12 s (reload) or 19 s (killed)

The minimum versions are Chrome and Edge 137, Safari 17 and Firefox 130; an older browser gets unsupported_browser from join(). Chrome on desktop, and Safari on desktop and iPhone, are tested. Firefox and Android are not yet tested on real devices. Tell us what you see. A minimised desktop Safari window leaves the room until it is shown again.