OptionalconnectTimeout (ms) for a single connect attempt.
OptionaljoinTimeout (ms) awaiting the room-joined handshake reply.
OptionalloggerLogger for client and transport diagnostics.
OptionalmaxMaximum number of messages queued while offline.
OptionalmaxMaximum reconnect attempts before failing; unlimited when omitted.
OptionalmaxUpper bound (ms) on the reconnect backoff delay.
OptionalnonClose codes that must NOT trigger a reconnect (retrying is futile, e.g. a
rejected/expired token → 1008). Forwarded to the transport; on such a
close the client emits ClientEvent.Terminated.
OptionalpeerExplicit peer identifier, appended as peerId when no token is set.
OptionalreconnectWhether the transport reconnects automatically after a drop.
Base signaling server URL (ws:// or wss://); roomId and auth params are appended per join.
OptionaltokenStatic auth token appended as the token query parameter. Takes precedence over peerId.
OptionaltokenAsync callback that yields a fresh token before each reconnect; forwarded to the transport.
OptionaltransportOverrides the default WebSocketTransport factory.
Configuration for constructing an RTCForgeClient.