Colyseus-szobaprotokoll
Meghatározza a szoba által fogadott parancsokat és játékhatásukat. A beküldött adatot az azonosított játékoshoz és meccsfázishoz ellenőrzi, mielőtt szerveroldali állapotváltozást enged.
colyseus-room-protocol
Nézd meg, miben segítMikor hasznos?
Akkor használd, ha szobaüzeneteket tervezel vagy hibás kliensparancs más játékosokra is hathat.
Miben segít neked?
- Feltérképezi a szobalétrehozás, belépés, játék és felszabadítás állapotait.
- Minden parancsot hitelesített játékosazonosság alapján ellenőriz.
- Korlátozza a bemenetet, elkülöníti a tartós eredményt a szobamemóriától.
Például ezt kérheted
Az arénához adj mozgás-, kész- és támadásparancsot. Küldj túlméretes adatot, támadj kezdés előtt, és próbáld más játékos egységét mozgatni. A hibás parancs ne módosítsa a szobát, a jogos művelet pedig egyértelmű szerveroldali állapotfrissítést adjon.
Részletes dokumentáció
Itt a skill eredeti útmutatóját, példáit és ellenőrzési szempontjait olvashatod az eredeti nyelven.
Összecsukás
Colyseus — room protocol
Use when designing Colyseus rooms, message contracts, command validation or state ownership.
Version and project gate
Inspect Server, client SDK and @colyseus/schema versions, TypeScript/decorator configuration, room registrations, auth hooks, patch/simulation rates, transport, deployment topology and persistence adapters. The 0.17 reconnection lifecycle must not be assumed for older versions. Never turn a task into an engine upgrade without the user’s intent. Read the version-matching official reference when an API decision depends on it.
Work
Define room creation, admission, active play and disposal transitions. Map each client command to authenticated identity, validation, authoritative mutation and response. Separate durable game outcomes from ephemeral room state. Bound payload size and command frequency from gameplay requirements.
Deliver
A versioned command/state contract and a minimal authoritative room implementation. Keep the change in the existing project structure; separate actual observations from the proposed acceptance scenario below.
Failure to prevent
Room membership alone does not authorize acting for another player; do not trust client-reported rewards or positions.
Acceptance scenario
Send malformed, out-of-order and duplicated commands from two identities and confirm authoritative invariants remain intact. Follow the project’s execution and verification permissions. If execution or a target device is unavailable, provide the reproduction steps and name the remaining uncertainty; do not mark it passed.
Scope and sources
This skill belongs to Relay. Agent selection is restricted by Orqestria’s assigned-agent policy, including forced skill selection; instruction text alone is not an access control. These are original task workflows researched from official documentation, not a copied or endorsed vendor skill.
Csomagban lévő fájlok 1
SKILL.md
