Build authoritative real-time multiplayer servers with Colyseus 0.17+. Use when implementing rooms, schema state sync, client message validation, matchmaking, authentication, reconnection handling, or server-side anti-cheat constraints. Keywords: colyseus, room lifecycle, schema, multiplayer, websocket, matchmaking, onJoin, onLeave, onDrop, allowReconnection.
Overall
score
99%
Does it follow best practices?
Validation for skill structure
Use this reference when defining room message handlers.
room.onMessage("move", (client, payload) => {
const parsed = moveSchema.safeParse(payload);
if (!parsed.success) return;
const player = room.state.players.get(client.sessionId);
if (!player) return;
if (!isValidDelta(player, parsed.data)) return;
player.x = parsed.data.x;
player.y = parsed.data.y;
});Install with Tessl CLI
npx tessl i pantheon-ai/colyseus-multiplayer@0.1.0