colyseus-multiplayer
Installation
SKILL.md
Colyseus Multiplayer
Philosophy
- Treat every client as untrusted: the server decides, the client only asks.
- Validate before you mutate: parse the payload, check ownership and rules, then change state.
- Plan for dropped connections as the normal case, not the exception.
- Keep synchronised state in Schema and keep matchmaking metadata honest about the room.
When to Use
- Building server-authoritative multiplayer game backends with Colyseus 0.17+.
- Defining rooms, Schema state and lifecycle hooks (
onCreate,onJoin,onLeave,onDrop). - Writing message handlers that must validate client payloads and resist cheating.
- Configuring matchmaking metadata, authentication or reconnection policy.