Skip to content

Session Errors

Session-level errors are sent through the session.error event.

AUTH_INVALID

Sent when the ticket, token, or authentication information is invalid.

json
{
  "type": "event",
  "topic": "session.error",
  "data": {
    "code": "AUTH_INVALID",
    "message": "Authentication credentials are invalid."
  }
}

AUTH_EXPIRED

The connection may be closed when the service detects that the session authentication state is no longer valid.

If the service sends an error event before closing, it may use:

json
{
  "type": "event",
  "topic": "session.error",
  "data": {
    "code": "AUTH_EXPIRED",
    "message": "Authentication token has expired."
  }
}

RATE_LIMITED

Sent when heartbeat, reconnection, or request frequency is too high.

json
{
  "type": "event",
  "topic": "session.error",
  "data": {
    "code": "RATE_LIMITED",
    "message": "Rate limit was exceeded."
  }
}

Client Handling

  • For authentication errors: obtain a new access token or wsTicket, then reconnect
  • For rate limit errors: reduce request frequency and retry later
  • For network failures: reconnect with exponential backoff
  • After repeated reconnect failures: record logs and raise an alert
Docs buildVersion v1.3.6-20260720-180213-70
Copyright © 2026 WLTE