defaultChunkBytes constant

int const defaultChunkBytes

The default relay chunk size.

256 KiB of payload becomes about 344 KiB once base64-framed, which is comfortably inside a WebSocket frame while keeping the per-chunk round-trip cost small relative to the data moved.

Implementation

static const int defaultChunkBytes = 256 * 1024;