blazeauth
Reference

transfer_file

Stream a protected file over the WebSocket session.

transfer_file

Start streaming a protected file over the current WebSocket session.

  • Type: 8
  • Requires initialization: yes
  • Requires authorization: yes

Example packets

transfer_file
Start streaming a protected file over the same WebSocket session.

Streaming behavior

transfer_file is a streaming operation. It can emit many response messages for a single request id.

Each chunk is delivered as:

  1. A JSON header (TransferFileResponse)
  2. A binary WebSocket frame with exactly chunk_size bytes

If chunk_size is 0, there is no binary frame for that message.

Full streaming rules:

Common terminal statuses

StatusMeaning
1ok (end of stream)
3not_authorized
300file_not_found
304file_storage_quota_exceeded
305file_invalid_name
308file_transfer_stopped
6internal_server_error

On this page