BlyntBlynt API
WebSocket API Reference

Error Management

Errors communicated by the server.

error (Server to Client message)

When an error occurs, the server sends an error message in JSON format. For fatal errors, such as sending start_session twice or an internal server error, it then closes the connection (see Ending a session).

The message contains the following fields:

  • type (required): must be error
  • message (required): explanation of the error

Example:

{
  "type": "error",
  "message": "`start_session` has been sent twice."
}

On this page