Riff
Realtime multiplayer

Multiplayer for your game, without the servers.

Rooms, messaging and shared state over a simple WebSocket protocol. Add the Unity SDK, join a room, and start sending.

Unity C#
await client.ConnectAsync("player-1", "Ada");
await client.JoinRoomAsync("arena-1");

await client.SendToRoomAsync("chat", new { text = "gg" });

client.OnMessageReceived.AddListener(msg => {
    Debug.Log(msg.Data["data"]);
});
Features

Everything a multiplayer game starts with

The building blocks most games need first, with a small API you can learn in an afternoon.

Rooms and lobby

Join-or-create rooms by name, list open rooms, and cap players per room. Rooms clean up after themselves.

Flexible messaging

Send to the whole room, a single player, or the master. Your own event names, any JSON payload.

Master authority

One player controls the room, with automatic hand-over when they leave. Master-only actions for turns and game end.

Shared properties

Room and player properties sync to everyone and are there for late joiners: modes, teams, ready states.

Shared random seed

Every client draws the same random numbers from one seed. Shuffles and loot rolls agree with no extra traffic.

Signed connect tokens

Optionally require a short-lived token from your backend, so a player id can be trusted.

Unity SDK with WebGL

A ready-made Unity package that also runs in browser builds. Plain JSON over WebSocket for anything else.

Nothing to run

No servers to provision, patch or scale. Connect your game and play.

How it works

From zero to a shared room in three steps

Connect

Open a WebSocket with your app id and a player id. Add a signed token when you need to trust who is connecting.

Join a room

Join a room by name. It is created for you if it does not exist, and you become its master.

Play

Send messages, sync positions and properties, take turns, and finish a game. Every player in the room hears it.

The protocol

Plain JSON, no lock-in to an engine

Everything is a small JSON message over a WebSocket, so any client can speak it. The Unity SDK wraps it for you.

Protocol reference
JSON
// you send
{ "action": "sendToRoom",
  "data": { "eventName": "chat", "data": { "text": "gg" } } }

// everyone else receives
{ "event": "message",
  "data": { "eventName": "chat", "data": { "text": "gg" },
            "fromPlayerId": "player-1" } }

Start with the docs

Everything is documented, from connecting to shared randomness. Accounts and pricing will be announced at launch.