Skip to content

Getting started

Introduction

SyncVerse puts Unity games into shared rooms: a lobby, rooms, networked objects and RPCs.

What is SyncVerse?

SyncVerse is an open-source multiplayer server and Unity SDK for room-based online games. Players meet in a lobby, create or join rooms, and the server relays networked objects with ownership, state sync with interpolation, and RPCs, replaying buffered spawns and RPCs to late joiners. You can self-host the MIT-licensed TypeScript server (public source release with the public launch) or use SyncVerse Cloud with an App ID, which includes a free test server in the EU (Frankfurt, Germany). It supports Unity 2021.3 or newer, including WebGL builds.

SyncVerse is multiplayer for Unity built around rooms. Players connect to a lobby, create or find a room, and join it. Inside a room the server relays object state, RPCs and ownership changes between players, and replays what a late joiner missed.

It has two parts:

  • The Unity SDK (C#): SyncVerseMaster for the lobby, SyncVerseRoom for a room, SyncVerseView on every networked object.
  • The game server (TypeScript, open source, MIT). It serves the lobby on /master and rooms on /rooms/<id> over WebSockets.

Cloud or your own server

You can use the same SDK and the same server code in two ways.

SyncVerse CloudSelf-hosted
What you configure in UnityAn App IDYour server URL
Who runs the serverWe do, on game nodes in the EUYou, one process
Access controlApp ID, optional access tokens, allowed originsNone built in
Dashboard, usage, webhooksYesNo

Moving between them is a settings change in Unity. Start with the Unity quickstart, or read Self-hosting to run the server yourself.

How the pieces fit

  1. The game connects to the lobby (/master) and gets a room: by creating it, by name, or at random.
  2. The answer names the server that hosts the room. In the cloud it also carries a short-lived ticket for that server.
  3. The game opens a second socket to the room, joins as a player, and spawns its objects.

The full wire format is documented in the protocol reference.