Riff

Documentation

Everything you need to build multiplayer games with Riff. New here? Start with the overview.

Overview

What Riff is and the few concepts you need to get started.

Connecting and master

The connect URL, connect modes, what happens on connect and disconnect, and how the master (host) is chosen.

Lobby and rooms

Listing, creating, joining and leaving rooms, room and player properties, and the room lifecycle.

Messaging and events

Sending data to the room, one player, or the master, and how every message arrives.

Gameplay helpers

Position sync, targeted events, turn order and ending a game.

Shared random seed

How every player in a room gets identical random numbers, and the rules that keep them in sync.

Unity SDK

Installing the package, configuring a connection, the RelayClient API, and the callbacks.

Protocol reference

Every action, every event, every error code and every limit in one place.

Server API

Push messages to your players from your own backend: announcements, game events, anything that does not come from a player.