# Limits and errors

> What the free plan allows, how connections are counted, and what happens at each limit.

Source: https://syncverse.aqaddoura.com/docs/limits

## This server

Every new account starts on the Free plan below. [Sign up with your email](https://syncverse.aqaddoura.com/login?plan=free), create a project and copy its App ID. The endpoints of this deployment:

| What | Address |
| --- | --- |
| Unity Cloud URL (SyncVerseSettings) | `wss://syncverse.aqaddoura.com` |
| Lobby (master) | `wss://syncverse.aqaddoura.com/master?appId=<App ID>` |
| Dashboard API | `https://syncverse.aqaddoura.com/api` |

Rooms have their own address on a game node. You never type it: the lobby answers with it, plus a short-lived ticket, when you create or find a room.

## Free plan

| Limit | Value | At the limit |
| --- | --- | --- |
| Projects per account | 2 | Creating a third project is refused |
| Concurrent connections per project | 20 | New connections refused with `QuotaExceeded` |
| Players per room | 16 | Requested maxPlayers is lowered to 16 |
| Rooms open at once per project | 10 | CreateRoom answers `RoomLimit` |
| Idle project | 90 days | Paused; connections refused with `ProjectPaused` until reactivated |

## How connections are counted

Every open socket counts once: a lobby socket and a room socket of the same player count as two. The SDK closes the lobby socket when it enters a room (`ConnectToRoom` does this by default), so a player in a room usually counts once. Keep the lobby socket open only while players browse rooms.

## Rate limits

- Connection attempts: 30 per 10 seconds per IP address, then `RateLimited`.
- Messages: game nodes accept up to 120 frames per second per socket. Extra frames are dropped and the sender gets one `RateLimited` error per second; the connection stays open.
- A single frame is at most 64 KiB; larger frames close the connection.

## Rooms and nodes

- A new room is announced to the lobby at once. If nobody connects within 30 seconds, it is removed again.
- A room with no players left is removed after 30 seconds.
- A node that is full or being drained refuses to create new rooms with `ServiceUnavailable` and frees the name. Create the room again and it lands on another node. Joining a room that already exists is not affected.
- If a node fails, its rooms are lost and players are disconnected. Create or join again.

## Errors inside a room

Rule violations never disconnect you. The room answers with `OnError(code, message)` and drops the action:

| RoomErrorCode | Meaning |
| --- | --- |
| `NotJoined` | Sent something before joining |
| `NotMasterClient` | Only the master client may do that |
| `NotOwner` | Only the owner may sync or destroy this object |
| `OwnershipDenied` | Ownership mode does not allow the transfer |
| `UnknownView` | The object does not exist (any more) |
| `UnknownPlayer` | The target player is not in the room |
| `InvalidTarget` | Buffered RPCs only target All or Others |
| `BufferLimit` | The room's buffered log is full |
| `RateLimited` | Too many frames this second |
| `Kicked` | Removed from the dashboard; OnKicked fires and the connection closes |
