Skip to Content
DevelopersError CodesCodesWebSocketWS validation error

WS validation error

Code

WS/VALIDATION_ERROR

What it means

The server received a WebSocket message, but the payload failed validation against the expected DTO/schema.

When it happens

  • A WebSocket message payload fails DTO/schema validation.

Typical scenarios:

  • Client and server DTO versions are out of sync
  • Client sends malformed payloads (missing required fields, wrong types)
  • A message router maps the wrong DTO to a type

How to handle

  • Treat as 400-class client error.
  • Include a compact validation reason in meta.reason (avoid huge payload dumps).
Last updated on
Docsv1.0.10