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_leftis omitted. - If license is expired at read time, server returns
LicenseExpiredand still includes license payload.
Get-current-license statuses
| Status | Constant | Returned when |
|---|---|---|
1 | Ok | Current license data returned successfully. |
3 | NotAuthorized | Session is not authorized by license. |
103 | LicenseExpired | Session 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 code | Error | When it happens |
|---|---|---|
4200 | connection is not initialized | Request was sent before successful Initialize. |
4201 | rate limit hit | Global per-session packet rate limit was exceeded. |
4302 | invalid request body | Packet body does not match the required schema for this operation. |
4304 | received unsupported data | Client sent unsupported frame type (request packets must be text JSON). |