Skip to Content
DevelopersError CodesCodesPlayerPlayer not found

Player not found

Code

PLAYER_NOT_FOUND

What it means

The server could not find a player entity for the requested identity in the current room context.

When it happens

  • A player lookup fails (e.g. identityId not registered in a room).

Typical scenarios:

  • Client sends updates before the join/verification sequence completes
  • Player was removed (disconnect) but client still emits messages
  • IdentityId mismatch between client and server

How to handle

  • Treat as 404 in server logic.
  • On the client, reconnect and re-verify if this happens unexpectedly.

Notes

This code is intentionally flat (no PLAYER/... prefix) for now, but it is grouped under PLAYER in AppErrorCodes for discoverability.

Last updated on
Docsv1.0.10