Packets

Get session value

Reads a key-value entry from temporary storage bound to the current session.

Get session value reads a value from session-scoped storage by key. This operation is available only after successful Initialize.

Reads from session cache

This operation reads data from the same volatile per-session cache used by Set session value. Cached values are not persisted and are not shared across sessions.

Request

Get session value uses packet type = 13.

{
  "type": 13,
  "id": 14,
  "key": "launcher_token"
}

Prop

Type

Response

{
  "id": 14,
  "status": 1,
  "value": "abc123"
}

Prop

Type

Behavior notes

  • Request and response are regular text JSON websocket frames.
  • Storage is session-scoped; values are available only inside the current session.
  • Value lifetime is limited by session lifetime and per-key TTL configured during Set session value.
  • If key is missing or expired, server returns StoreValueNotFound.
  • On non-OK statuses, value is omitted.
  • Reading a value does not extend its TTL.

Get-session-value statuses

StatusConstantReturned when
1OkValue was found and returned.
700StoreValueNotFoundKey does not exist in current session cache or value already expired.

Connection-close cases (before/around this usecase)

Get session value 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