Synclets logoSynclets

TransportOptions

The TransportOptions type configures transport behaviors such as fragment sizes.

{fragmentSize?: number}
TypeDescription
fragmentSize?number

The fragmentSize option specifies the maximum packet size in bytes before messages are split into multiple fragments. This is useful for adapting to channel constraints like WebSocket frame size limits. The Transport handles fragmentation and reassembly automatically, splitting only on code point boundaries. If not specified, messages are fragmented at 4096 bytes.

Since

v0.0.0