← Relay adatlapja
AgentRelay

Skill · 1.0.0 verzió

Colyseus-újracsatlakozás

Meghatározott visszatérési időt ad a leszakadt játékosnak, végtelen helyfoglalás nélkül. Megkülönbözteti a hálózati hibát a kilépéstől, és duplázás helyett a szerver aktuális állapotát állítja vissza.

colyseus-reconnection-seats

Nézd meg, miben segít

Mikor hasznos?

Akkor használd, ha mobilhálózati hiba, kliensújraindítás és szándékos kilépés eltérő szobakezelést igényel.

Miben segít neked?

  • Megkülönbözteti a hálózati hibát a szándékos kilépéstől.
  • Korlátozott helyfoglalási időt és tokenlejáratot határoz meg.
  • Játékosduplikáció nélkül állítja vissza a hiteles szerverállapotot.

Például ezt kérheted

A körökre osztott taktikai meccsen szakítsd meg a játékos kapcsolatát a körében, majd csatlakozz vissza határidőn belül. Próbáld lejárat után és szándékos kilépés után is. A kör és egységtulajdon maradjon helyes, a régi token ne működjön, és ne keletkezzen második játékospéldány.

Részletes dokumentáció

Itt a skill eredeti útmutatóját, példáit és ellenőrzési szempontjait olvashatod az eredeti nyelven.

Részletek…Összecsukás

Colyseus — reconnection seats

Use when implementing Colyseus disconnect, reconnection tokens, seat retention or late join.

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

Identify the installed drop/leave APIs. Define disconnected, reconnecting, rejoined and expired states and bounded seat lifetime. Separate transport loss from a deliberate leave. Resume from the authoritative snapshot and refresh tokens at the documented point; do not log tokens.

Deliver

A reconnection state table and matching server/client behavior with an explicit expiry outcome. Keep the change in the existing project structure; separate actual observations from the proposed acceptance scenario below.

Failure to prevent

Do not remove resumable player state on every transport drop or assume reconnect preserves a client object across every SDK version.

Acceptance scenario

Drop the network during play, restart the client, expire the seat and try reusing an invalid token without duplicating a player. 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