OptionalconnectTimeout (ms) for a single connect attempt. 0 disables the timeout.
OptionalloggerLogger for connection lifecycle diagnostics.
OptionalmaxMaximum number of messages buffered while offline before sends are rejected. Ignored when a custom sendQueue is supplied.
OptionalmaxMaximum reconnect attempts before giving up; unlimited when omitted.
OptionalmaxUpper bound (ms) on the exponential-backoff reconnect delay.
OptionalnonWebSocket close codes that must NOT trigger a reconnect — retrying would
be futile (e.g. a rejected/expired auth token closes with 1008). On such
a close the transport emits TransportEvent.Terminated and stops.
OptionalreconnectWhether to automatically reconnect after an unexpected close.
false for WebSocketTransport; RTCForgeClient passes true by default.
OptionalreconnectCustom backoff policy; defaults to a jittered exponential ReconnectStrategy.
OptionalsendCustom offline message buffer; defaults to a bounded SendQueue.
OptionaltokenAsync callback invoked before each reconnect to obtain a fresh auth
token, which is written to the token query parameter of the socket URL.
Construction options for a Transport. Passed by RTCForgeClient to its TransportFactory; can also be supplied directly when instantiating WebSocketTransport standalone.