Skip to content

Websocket RouterA public address space for realtime messages

Connect a websocket to any URL. Everything you send goes to every other client on that URL — and to nobody else. No accounts, no SDK, no setup.

In thirty seconds

js
const ws = new WebSocket(
  "wss://router.metapage.io/a-name-nobody-will-guess",
);

// Anything any other client sends to that URL arrives here.
ws.onmessage = (event) => console.log("peer said:", event.data);

// Anything we send goes to all of them — but never back to us.
ws.onopen = () => ws.send(JSON.stringify({ hello: "world" }));

And from anything that can make an HTTP request:

sh
curl -X POST \
  https://router.metapage.io/a-name-nobody-will-guess \
  -d '{"temperature": 21.4}'

That is the entire product surface. The rest of these docs is about what that turns out to be good for, and where the edges are.

Released under the MIT License.