Packets

Get file metadata

Returns stored metadata and integrity data for a file.

Get file metadata returns file metadata for the current application by filename. This operation is available only after successful Initialize.

Request

Get file metadata uses packet type = 9.

{
  "type": 9,
  "id": 10,
  "filename": "client.dll"
}

Prop

Type

Response

{
  "id": 10,
  "checksum": "2f57f0f6f4f8f7df8f4f395f6efc58f3e0681c6cf8f8a53fd2f1f4d76ab4bc9e",
  "size": 1832456,
  "transfer_count": 37,
  "last_transferred_at": 1760000000,
  "status": 1
}

Prop

Type

Behavior notes

  • Response packet is a regular text JSON websocket frame.
  • checksum describes the whole stored file, not a transfer range.
  • This operation does not require an authorized user/license session; initialized session is enough.

Get-file-metadata statuses

StatusConstantReturned when
1OkMetadata returned successfully.
6InternalServerErrorServer failed to read metadata due to an internal error.
300FileNotFoundFile with provided filename does not exist for this application.
301FileInvalidNamefilename is shorter than 4 characters.

Connection-close cases (before/around this usecase)

Get file metadata 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