Packets

Get current license

Returns license data currently bound to the session.

Get current license returns the license currently attached to the session. This operation is available only after successful Initialize.

Request

Get current license uses packet type = 15.

{
  "type": 15,
  "id": 15
}

Prop

Type

Response

{
  "id": 15,
  "license": "ABCDEF-123456",
  "levels": { "tier": "pro" },
  "comment": "main seat",
  "ip_address": "203.0.113.10",
  "time_left": 86400,
  "status": 1
}

Prop

Type

Behavior notes

  • Request and response are regular text JSON websocket frames.
  • This usecase works only for license-based authorization context.
  • If the current session is not authorized by license, server returns NotAuthorized.
  • If license has no expiration configured, time_left is omitted.
  • If license is expired at read time, server returns LicenseExpired and still includes license payload.

Get-current-license statuses

StatusConstantReturned when
1OkCurrent license data returned successfully.
3NotAuthorizedSession is not authorized by license.
103LicenseExpiredSession has a license context, but current license is already expired.

Connection-close cases (before/around this usecase)

Get current license itself returns regular JSON responses, 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.
4304received unsupported dataClient sent unsupported frame type (request packets must be text JSON).

On this page