Connection
How peers find each other, how to invite someone into your scene, and how to point the app at a signaling server you trust.
ThePrototype is peer-to-peer: once two browsers connect they talk directly over WebRTC, and the whole scene replicates between them. The only shared infrastructure is a small signaling server (PeerJS) used to introduce peers to each other — it never sees your scene data.
The Connect panel
The Connect panel is the bar at the top of the screen. Since 1.35 it is either pinned — a full-width bar along the top edge, the default on a touch screen — or floating — the centred pill, the default with a mouse; switch with the Pinned / Float button in its drawer's header (see The Connect bar). A floating bar with no room on the top row shrinks to a compact dot and chevron, and grows back when room returns. You can move it anywhere and hide it in Edit positions or by unticking Connect bar in Customize toolbar…; on a folded phone the Connect chip stays.
Since 1.65 it shows your ID, then two verbs, Invite and Join…:
- Your ID — the button on the left shows your own peer ID. Click it to copy your invite link (your app URL with your ID attached, e.g.
https://theprototype.app/#AB12CD) to the clipboard. Until the connection to the signaling server is ready it reads Generating…. - Invite — opens the invite sheet on Person, with AI agent as its second tab (it replaces the robot Request AI button). See Invite people and agents.
- Join… — opens the join field. Paste an invite link or type a peer id, and press Connect. Esc in an empty field, or the ✕, folds it back. The field no longer shows all the time.
Before you connect, the bar says Ready beside the status dot while the peer server answers (not Offline).
Since 1.30, once you are connected the bar collapses to a compact chip — the status dot, the avatars of who is here and your mic; click it to open the full bar again (its collapse button folds it back). On a phone the bar is always the chip — tap it for your ID, the join field, Info and Toasts. The signaling link's attempt count is in the drawer's Info tab.
New in 1.64: the drawer says the state once, in words: Ready · not in a session, Hosting · 2 people or In a session · 3 people (it no longer says Offline while the connection works). The signaling server and relay details are folded under one Network row, which opens by itself when the connection has trouble.
The status dot
Since 1.32 the connection status is a coloured dot. On a computer the full bar keeps your invite ID, Invite and Join…, with the dot at its left end. On a phone the chip at the top of the screen says the state beside the dot — Connect (not connected yet), Connecting…, Connected or Offline (the peer server cannot be reached) — whenever the top bar has room. When the bar is crowded (people are connected and you are in a call, so the peers button and the microphone take the space) it shrinks back to the dot and a ▾ (and the microphone while you are in a call).
| Dot | Means |
|---|---|
| grey | not connected |
| yellow, pulsing | connecting, waiting for someone to approve, or reconnecting to the peer server |
| green | connected |
| red | the peer server cannot be reached (the app keeps retrying) |
Point at the dot — or press and hold it on a touch screen — for the full sentence, such as Connected to 2 peers; while the signaling link is down it also says how long it has been trying. On a phone a tap on the chip opens the full connection details.
A folded phone's top bar: the chip keeps the connection dot.
- The dot: its colour is the connection state (the table above).
Who is here: the peers panel
The peers button in the top bar (beside the bell, with the number of people) opens the Connected panel. Its header matches the notification centre's, and each person is one row: their avatar, their name (shortened with … — point at it for the full name), a second line with where they are and their role, and their actions on the right — Watch, Go to or the role list. On a computer the panel is 320–420 px wide and grows with long names, so nothing wraps or breaks. On a phone it opens as a sheet like the notifications: a grab bar on top, and a swipe down closes it.
The Connected panel on a computer.
- (you): your own row; the host is Admin.
- A person's role (Editor or Viewer): the host changes it here.
New in 1.64: every row shows its ⋯ menu and Go to without hovering, and the number of people is counted once, on the peers button. Each person has one avatar everywhere (the chip, this panel, chat): their photo, or their colour with their initial, ringed in the same colour as their cursor and their selection locks.
Your name. When you join a session you are asked what others should call you; the name is remembered on this device (Not now skips it for this join). Anyone without a name shows as Guest 1, Guest 2… instead of "Peer". A person who joins no longer appears inside your view: an avatar close to your camera fades out, and a joiner whose view would open on top of someone arrives a step to the side. New in 1.76: people who open a play link and start playing at the same time arrive apart too: at the spawn or a free spot around it, at least a metre from anyone else and never inside a wall. This works on a computer and in VR.
Right-click a person (long-press on touch, Shift+F10 from the keyboard) for the peer menu: their profile, Go to, Watch, Mute, Hide — and, for the host or an admin, Remove from session and Remove and block. See Users and moderation. An AI agent shows a robot and "AI" instead of a character.
Public rooms in the panel (since 1.57). On theprototype.app the panel also lists the live public rooms and who is in them, under their own Public rooms heading below your session — live rooms anyone can join, not part of your session. The people listed there are not connected to you; Watch beside them is greyed with the reason.
Public rooms under their own heading, apart from your session.
Inviting someone
- Copy your invite link (the Your ID button) and send it to a friend.
- When they open the link, their app automatically sends you a connection request.
- You get a Connection request toast — press Approve and you are connected.
Or do it by ID: they press Join…, type your ID and press Connect; the same approval toast appears on your side.
To skip the approval card, send an invite link instead (Connect ▸ Invite, a Person or an AI agent tab): the other side opens it, or pastes it into Join…, and it joins in one step with the role you chose, for a limited time. See Invite people and agents.
Invite link limits
New in 1.76. Each device can have at most 20 invite links that still work, and can make at most 10 in 10 minutes. Past either, no link is made and the Invite sheet says why and when you can make another:
- You already have 20 invite links that still work. Revoke one in Users ▸ Invites before making another.
- You made 10 invite links in the last 10 minutes. Try again in 4 minutes.
One invite also lets the same person back in only so often: two quick re-joins (a dropped link, a reload) are fine, then one every 30 seconds. They see You rejoined ‹host›'s session several times in a row. Wait half a minute, then try again.
Failed invite joins
New in 1.76. An invite link that does not work (expired, revoked, used up, or one this device cannot confirm) never lets anyone in by itself, and it no longer turns into an approval card. Every such join is counted in one row, 3 failed invite joins, in your notices, the Connect drawer and the approval panel in a headset. So real requests always keep their place: a pile of failed invite joins never pushes a real request out of view.
- Review lists the recent ones, each with its short id and why it failed. Let in beside one lets that person in, as approving a card would.
- Dismiss clears the row.
If more than 10 invite joins fail within a minute, invite joins pause for 60 seconds. You get one notice, Invite joins are paused for 60 s, with Resume now. During the pause, anyone who opens an invite link sees why (‹host› has paused invite joins for a minute after too many failed tries. Try again shortly.) and a Try again button. Approval cards keep working the whole time.
Blocking a guest
Remove and block keeps that connection out for the rest of the session. A guest who is not signed in can come back with a new id, though, so when you, the host, block a guest the notice says so and offers Require approval to join.
Require approval to join is for this session only. While it is on, nobody joins by themselves: every automatic join, a working invite link included, becomes an approval card, and you decide each one.
- The notice confirms it, with Undo.
- The same switch is in Settings ▸ Connection ▸ Require approval to join, to turn it on or off at any time.
- It turns off again when you leave the session.
- On theprototype.app it also turns on your room's own Require approval to join switch, so the Rooms list shows Request to join.
Someone who is signed in gets the plain notice instead. To keep an account out of every session you host, use Block this account on theprototype.app.
What guests see
Connect ▸ ▾ ▸ Info, where the host picks what guests see.
- Guests see: which of your files a guest sees in the Explorer (read-only).
The host decides how much of their library a guest sees: Connect ▸ ▾ (Info) ▸ Guests see.
| Setting | Guests see |
|---|---|
| Current scene's files (default) | the open scene's file and the files it uses |
| Every scene on this device, and shared files | the above, plus every scene file on this device and every file already shared in the session |
| Whole library | every file and folder in your Library |
| None | nothing |
Changing it updates every guest's view straight away. The host's device answers a download only for files it is currently showing that guest, so narrowing the setting also stops downloads of files no longer shown.
Saving as a guest
Your edits land in the host's scene. Save on host (Explorer, on the session's row) saves it into the host's library; Copy to my library brings a file to yours. A view-only guest can copy, not save on host.
Reloading while joined
Since 1.48.1. A guest who reloads the page — or whose phone reloads it — goes straight back into the session it was in, on the same seat and with no new approval card, instead of being asked Restore previous session?. The restore offer still appears when there is no live session to go back to. A phone whose screen turns off, or that switches to another app, keeps its link for up to a minute.
A link in a tab that is already open
You do not have to reload to follow an invite. Paste the link into the address bar of the tab that is already running the app and press Enter: the app dials that session on the spot, with your scene and your session id intact. (Since 1.65 you can also paste it into Connect bar ▸ Join…, which takes a peer ID or an invite link.)
A few cases ask first, or refuse with a message:
- Already in a session — You're in a session with Ada (75F41). Leave it and join 3B0C2? with Leave & join and Stay.
- Your own link — That's your own invite link — send it to somebody else to have them join you.
- Someone you are already with — Already connected to Ada (75F41).
- A link that names another signaling server — Join 3B0C2 on peerjs.example.com? with Join and Cancel; joining switches server without a reload, exactly like Apply below. If that server cannot be reached you are back online on your previous server within a second, with the same session id, so the invite link you shared keeps working.
The request, and how it ends
A connection request waits for the host. Three things can end it, and each one says so on both sides:
- Approve — you are connected. The card offers View only and Editor access where roles are in use, and a plain Approve where they are not. Since 1.40 a View only joiner gets the room's HUD, HUD values, shader graphs, animation, look and room anchor straight away, and an Editor access joiner is an editor on their own screen as soon as the connection opens.
- Reject — the request ends and the person is told: AB12CD declined your connection request. At the session's ceiling the card also offers Tell them it's full, which answers with AB12CD's session is full (16 people). Try again when someone leaves. and a Try again button.
- Nobody answers — after 90 seconds the request cancels itself on both sides and offers Try again, instead of sitting on Requesting for ever.
While it is open the requester sees a countdown beside Requesting, and your card says how long that person has been waiting (asked 34s ago). An expired card can still be approved — approving simply dials them back. Dialling somebody who is not online ends the request too, rather than leaving it up beside a toast saying they are unreachable. If a connection is stuck, the panel offers a Retry that closes the stale link and reconnects.
Viewers can play (since 1.90). While you are in Play, people you let in as viewers can collect pickups, score and set off trigger zones; they still cannot edit, and per-player zones and clicks do not count for them yet.
Answering while you play (since 1.90). In a scene that is not a game, press Esc while you play: a short menu opens with Join requests, where Admit and Decline work by keyboard, mouse or gamepad. Admit lets the person in as a viewer. In a game the pause menu has the same page: see Joining while you play.
When a guest approves someone (since 1.54.1). A guest's Approve lets that person in at the guest only. The host decides for itself, with its own settings: an approval card of its own, or no card where the room lets people in automatically (an open room, or Allow guests to join automatically). A guest's Copy your invite link names the session's host, so a friend a guest invites asks the host directly. An invite link a guest made names that guest; the host is then asked by its own settings in the same way.
Waiting requests are capped
A rush of joiners folds into the Connect drawer rather than burying the screen, and when the queue is full the expired cards are dropped before the live ones.
Once connected, everything replicates automatically — objects, transforms, materials, the node graph, chat, pings, notes and voice.
Selection locks
Selecting an object locks it so two people can't fight over the same thing:
- The person holding an object shows as a small avatar over it, and Properties says ‹name› is editing this (read-only, with Request). The Object list row says Held by ‹name›.
- To take over, press Request (or Request control in the object's right-click menu); the holder gets an Approve/Deny prompt, which stays until they answer (since 1.91).
- The host can switch the room to Only while editing: selecting then takes nothing, and an object is held from your first change until about 3 seconds after the last.
If a peer disconnects, their locks are released and their avatar, cursor and hands are cleaned up automatically — only their locks; everyone else keeps theirs. More in Locks and drafts.
Rooms: one session, several scenes
A session is the connection — the people you are linked to, and the project you share. A room is simply everyone standing in the same scene, and the peer list shows which scene each person is in.
Because a peer in another scene is looking at a different world:
- you will not see their avatar in your viewport,
- Watch is disabled for them, with the reason on the button ("In Arena — open that scene to watch them"),
- and if they travel away while you are watching them, watching stops and says so.
Open the same scene and all of it comes back. Nothing is lost by being apart — their work is in the project, and travelling to their scene picks it up.
Before anyone names a scene
A fresh session has no named scene, so everybody is in one Untitled scene and none of the above applies. The same goes for someone who has just joined: they are standing in your content without knowing its name yet, so they are never hidden on a guess.
Public rooms (theprototype.app)
On theprototype.app, the Rooms button in the top bar lists public rooms — sessions their hosts chose to list — and lets you list your own. Browsing is open to everyone; listing a room needs you to be signed in (profile menu).
Your room's panel has a Room name, a Short description and these switches:
| Switch | What it does |
|---|---|
| List this room publicly | shows the room in everyone's Rooms list while you are online (a room whose host goes away drops off within about a minute and a half) |
| Require approval to join | Join becomes Request to join: the request lands on your approval card as "‹name› wants to join ‹room›", and you approve or reject it as usual |
| Allow guests to join automatically (view-only) | people who are not signed in may come in to watch. Off while approval is required or the room has a code |
| Enable room screenshot | the list card shows a picture of your scene instead of a coloured initial |
| Room code | list the room first, then type a code and Set it: someone who knows it gets in as a viewer without waiting for approval. A listed room with a code shows a lock |
When someone joins automatically (new in 1.44) — a guest through Allow guests to join automatically, or anyone with the room code — you get a notice saying who came in, with Turn off (stops automatic joining) and Remove, and the same notice stays in the notification centre. While a listed room lets guests in, the Connect bar reads Public · guests join. Remove takes them out and keeps them out while your tab stays open.
AI agents ask first (new in 1.48). A dial that says it is an AI agent never rides Allow guests to join automatically: it gets the approval card, with a robot on it, unless you also turn on Settings ▸ Connection ▸ Let AI agents join as guests (off by default). An invite link always lets an agent in with the role it carries. "AI agent" is what the joining app says about itself, so this is about seeing who knocks, not security: an agent that hides it is just a guest, view-only like any other.
Joining a coded room asks for the code ("‹room› needs a code", with a lock). The right code goes straight in; a wrong one is refused, and five wrong codes lock that person out for ten minutes. If the room also requires approval, Ask the host instead sends an ordinary request. The code itself is never stored on the server or sent in the clear — only your device can check it, so a code set on another device of yours has to be set again here.
Bigger sessions
Everyone in a session connects to everyone else, directly. A room of ten is the tested target: joining takes roughly a third of a second, and every peer really does end up linked to every other peer.
A momentary network blip no longer throws you out, either. A peer that drops for a few seconds is given a window to come back and rejoin the same session; only when that window closes are they treated as gone.
Session size
Settings ▸ Connection ▸ Session size is how many people you expect. It is a number you type; the default is 8, and 16 is the ceiling you cannot type past.
- Below your number, nothing changes.
- Past it, an approval still works but the card warns you first.
- At 16 the Approve buttons are disabled and the card reads this session is full (16) — beyond that point the mesh degrades for everyone rather than only for whoever joined last.
Note
How many peers work for you depends on your uplink, since each one sends to every other. Voice chat and live gestures are the bandwidth-hungry parts — a large scene is sent once per joiner, not continuously.
Versions in a session
When someone joins, their app and yours first agree that they speak the same session version, before any scene data is exchanged. Most updates do not change it, so people on different app versions keep working together as before. When an update does change it, the two apps do not connect: the person on the older version sees This session uses a newer version. Reload to update. with a Reload button, and people on the newer version see that person in People as needing to reload. After reloading, join again as usual.
With someone on 1.78 (1.79 keeps the same session version, so you connect as usual): they see material slots, their names and list changes, but draw an off slot as normal. They keep a slot's shader but draw the slot's own material, and People tells you they are on an older version. A Vibrate node does nothing for them. A Size + opacity pen stroke shows as Size for them until the stroke is done. They drop the scene's shadow quality: the scene reads Basic for them, and after their next sky or light change it reads Basic for everyone. Set it again once everyone has updated; the saved file is fine until then.
Each person's app also accepts a generous, bounded amount of messages and data per second from each other person, well above sharing a large file or moving hundreds of objects at once. Anything far beyond that is skipped with one notice, the connection stays up, and the counts are in Diagnostics.
Limit floods from peers
New in 1.76. Settings ▸ Connection ▸ Limit floods from peers sets how much your device takes from one person: Off, Normal (the default) or Strict. It ignores edits and chat from someone sending far more than a person would. It applies on this device.
- Movement, voice and the scene a joiner is sent are never limited, and neither is the session host.
- The person sending too fast is told: You are sending edits very fast, so some did not reach everyone. Slow down for a moment.
- The host or an admin sees ‹name› is sending too many edits, so some were ignored., with Remove.
Joining a big scene
New in 1.76. Someone who joins a session with a big scene already in it gets the whole scene much faster than before: the first objects show almost at once, and the rest follows quickly.
- Hidden objects, such as the template a spawner copies, arrive hidden.
- Names arrive exactly as written: Gate zone stays Gate zone.
- A large model with several materials arrives as one object with all its material slots, as it is on your screen.
Smoother movement on a bad connection
New in 1.44. Avatars, VR hands, objects being dragged or held, possessed rides and physics bodies travel on a second, fast connection between each pair of players. It never waits for a lost packet to be sent again — the next position, a twentieth of a second later, simply replaces it. Scene edits (adding, deleting, renaming, finishing a move — every change you make) stay on the reliable connection, so they still arrive complete and in order.
Nothing to switch on: it opens by itself when both players run 1.44 or newer, and with someone on an older version the session uses the reliable connection for everything, as before. Measured on a simulated lossy link (two peers, 20 updates a second), 95 % of the gaps between updates were at most:
| packet loss | before | 1.44 |
|---|---|---|
| none | 57 ms | 57 ms |
| 5 % | 249 ms | 74 ms |
| 10 % | 249 ms (worst 1.3 s) | 99 ms (worst 154 ms) |
A message bigger than about 12 KB (rare for a pose) goes on the reliable connection, and when a movement stops its last position is re-sent reliably a quarter of a second later, so nothing is left a few centimetres off.
People who drop out leave the list (1.44): someone whose app crashed or lost its connection now leaves the Users list on their own within about half a minute (it used to keep a "ghost"), and leaving a session no longer shows Connection error.
When the signaling link drops
The link to the signaling server is not the link to your peers — losing it does not end a session you are already in, it only stops new people finding you. When it drops the app reconnects on its own, backing off a little further between tries and never giving up, and the status dot pulses yellow while it is retrying so a dead link does not read as a dead app. Coming back online, or returning to the tab, retries immediately instead of waiting out the backoff — and since 1.32 it does so silently: switching apps on a phone and coming back no longer toasts. If the server stays unreachable for about a minute, the dot turns red and one entry appears in the notification centre; the retries carry on. A peer connection that closed is rebuilt rather than abandoned.
When the connection drops
After a short network drop (a Wi-Fi hop, a closed lid) or a signaling-server blip heals, a person who joined your room keeps the role you gave them: the role in Users stays as it was and their edits keep arriving. Before 1.45, on the hosted site, an Editor came back from such a drop as View-only — their edits stayed on their own screen and you never saw them. There is nothing to set.
A drop longer than the reconnect window (about 15 seconds, plus a dial already in flight) still ends the session for that person; they rejoin with the invite link.
Diagnostics you can copy
Settings ▸ About ▸ Copy diagnostics puts a bundle on your clipboard: the version, this session's peer and scene counts, the scene's budget numbers, the last uncaught error and the last 300 log lines. A toast confirms Diagnostics copied to the clipboard.
Since 1.35 a line that repeats back-to-back is written once with a count — WARN [console] … (×180, last 10:42:07.311) — so a burst of one warning can no longer push the useful lines out of the log.
It goes to your clipboard and nowhere else — paste it into a bug report, so a problem arrives with something in it.
Hide my IP
New in 1.76. A direct connection lets the people in your session see your IP address. To keep it from them, turn on Settings ▸ Privacy ▸ Hide my IP. New connections then go only through a relay server, so people see the relay's address instead of yours.
- The relay and the signaling server still see your address, because they have to reach you.
- Connections can be a little slower.
- It is kept on this device, and resetting your settings does not turn it off.
- A connection that is already open keeps its route. Leave and rejoin to switch it.
- If no relay server is available, you do not connect at all; a direct connection is never tried while it is on. A connection that fails says so: Could not connect through a relay server. Hide my IP is on, so no direct connection was tried.
On theprototype.app the relay is ours. A build with no relay server set up (see the TURN fields below) cannot connect while Hide my IP is on.
Choosing a signaling server
Which signaling server you use decides which world you can meet people in — two people must be on the same server for their invite links to connect. Set this in Settings ▸ Connection.
| Mode | What it does |
|---|---|
| Default | Uses the server the app was built with, and falls back to the public PeerJS cloud if that server is unreachable. If no server was baked in, Default simply is the public cloud. |
| Public PeerJS cloud | Always the free public PeerJS cloud. No fallback. Fine for quick tests; not recommended for real sessions. |
| Custom server | Pin your own PeerJS server. No fallback. |
Custom server reveals these fields:
- Host — your PeerJS host, no
https://and no path (e.g.peer.example.com). - Port and Path — TLS defaults are
443and/peerjs. - Secure (wss) — leave on unless you're testing a plain-
wsserver. - TURN URLs / username / credential — a TURN relay for peers behind strict NATs. Blank means STUN-only (direct connections only).
- STUN URLs — optional extra STUN servers.
Press Apply (the Apply changes row) to switch now: the app leaves any open session, reconnects to the server you chose and keeps your session id, so an invite link you already sent stays valid. A toast confirms Connected to … — your session id is unchanged. If the new server cannot be reached within a few seconds you are put back on the previous one and told so; the Reload link beside the button is the fallback if anything looks stuck.
The fallback
In Default mode, if your self-hosted server can't be reached the app switches to the public cloud on its own and tells you: "Your peer server is unreachable — switching to the public PeerJS server." Custom and Public modes never fall back.
Running a local build
If you run a local or self-built copy of the app, the first time you open it you'll see a one-time notice:
It looks like you are running a local build of theprototype. Configure a peer signaling server in Settings for reliable connections — the public PeerJS cloud is not recommended for real use.
It carries an Open Settings button that jumps straight to Settings ▸ Connection, and it appears only once per browser. The default public cloud keeps a fresh install working with zero configuration, but for anything real you'll want your own server — the app repository ships Terraform + a PeerJS + Caddy + coturn setup for exactly this.
When things go wrong
| Symptom | Meaning |
|---|---|
| Peer is unreachable | The ID is wrong or that person is offline — check the ID and ask them to stay open. |
| Your session ID is already in use | Reload the page to claim a fresh ID. |
| AB12 did not answer in 90s | Nobody approved your request in time, so it ended itself — press Try again to ask again. |
| AB12 declined your connection request | The host pressed Reject. Ask them before dialling again. |
| AB12's session is full (16 people) | Everyone connects to everyone, so a session has a ceiling. Someone has to leave before another person can join — Try again on the toast re-asks. |
| Could not reach … — back on your previous peer server. | Apply (or an invite link that names another server) could not open that server, so nothing changed: you are back online on your previous server with the same session id, and your invite link still works — check the host, port and path. |
| A red status dot, and one Can't reach the peer server — still retrying. entry in the notification centre | The link to the signaling server has been down for about a minute; the app keeps retrying on its own and never gives up, and the dot turns green or grey again once it is back. Shorter drops — a tab switch, a moment offline — reconnect silently. Your open session keeps going meanwhile. |
| ‹host› has paused invite joins for a minute after too many failed tries. | Too many invite links failed at that host in a short time, so invite joins are paused for 60 seconds. Press Try again after a moment, or ask the host for a fresh link. See Failed invite joins. |
| Could not connect through a relay server. Hide my IP is on, so no direct connection was tried. | Hide my IP is on and no relay could be reached. Try again later, or turn it off in Settings ▸ Privacy. |
| Cannot reach the signaling server - the connection request was not sent. | You pressed Connect while the signaling link is down. Wait for the status dot to stop pulsing, or switch servers in Settings ▸ Connection. |
The status page
status.theprototype.app answers is the service up? It is checked from outside every five minutes:
| Check | What it covers |
|---|---|
| The app | theprototype.app itself |
| Accounts, saves and community | sign-in, cloud saves, community scenes |
| Signaling | connecting people to each other |
| TURN relay | the relay used on networks that block direct connections |
| Community pages and error reports | the community pages and the error reports (since 1.39) |
Most of the app is peer-to-peer and keeps working while a service is down — a session you are in carries on. Sign-in, cloud saves and the community need the service. An outage opens an issue in github.com/theprototype-app/status and closes it on recovery. The checks never count as visits or errors.



