Overview of brainCloud Relay Server
The brainCloud Relay Server (Version 2 Protocol) acts as a non-authoritative relay for packet data between peers. It supports cross-platform communication between clients using UDP, TCP, or WebSockets (WS).
Key constraints and behaviors:
- Capacity: Supports up to 40 players, though 8 players is highly recommended due to the high traffic generated by Peer-to-Peer communication.
- Owner Migration: If the lobby owner leaves or fails to connect, the server migrates the owner role to the member with the best ping, or the next member in the lobby list.
- Reliability: Relay-Server Messages (RSMG) are sent in JSON format. For UDP clients, the server resends these every 200ms until an RSMG Acknowledge packet is received.