This page connects to a public, free signaling WebSocket server at wss://wss.getlost.ovh
.
It is provided strictly for testing. There is no authentication and no persistence: it is a thin
relay used to exchange WebRTC descriptors (SDP/ICE) and to maintain a per‑room roster of peers.
The server code is in examples/server/ws-server.mjs
. Here is exactly what it does:
roomId
,
the socket is attached to that room (created if missing). For each room the server tracks the set of sockets
and a roster (list of player identifiers).announce: true
and a from
(your Player ID), that ID is stored for the connection and added to the room roster. The server then broadcasts
to everyone in the room a roster update of the form { sys: 'roster', roomId, roster: [...] }
.to
field is present, the JSON payload is relayed as‑is to the targeted recipient
(same room, playerId === to
).playerId
had been
announced it is removed from the roster. Empty rooms are deleted; otherwise a fresh sys: 'roster'
is broadcast.roomId
can join that room.