Packets

Logout

Ends the current authorization context for the initialized session.

Logout removes current authorization from the session. This operation is available only after successful Initialize.

Request

Logout uses packet type = 5.

{
  "type": 5,
  "id": 6
}

Prop

Type

Response

{
  "id": 6,
  "status": 1
}

Prop

Type

Behavior notes

  • On success, session authorization is cleared.
  • After logout, protected operations require a new authorization.

Logout statuses

StatusConstantReturned when
1OkLogout completed successfully.
3NotAuthorizedSession is not authorized, so there is nothing to logout from.

Connection-close cases (before/around this usecase)

Logout itself returns JSON responses with status, but session can still be closed by protocol/session guards:

Close codeErrorWhen it happens
4200connection is not initializedRequest was sent before successful Initialize.
4201rate limit hitGlobal per-session packet rate limit was exceeded.
4302invalid request bodyPacket body does not match the required schema for this operation.

On this page