OptionalconnectOptionaldbOverride the IDB database name.
OptionaldisableDisable BroadcastChannel intra-browser sync — every edit goes
through the websocket. Forwarded to the websocket provider; ignored
for memory / indexeddb-only sessions. Default false.
OptionaldocExisting Y.Doc to bind to. Defaults to a fresh createCollabDoc().
OptionalpresencePresence config knobs.
OptionalpresenceBind to an existing Presence (e.g. a shared federation presence)
instead of creating one. When supplied, this session does NOT own the
instance and will not dispose it — the caller remains responsible for
its lifecycle.
OptionalproviderChoice of network/persistence stack. 'indexeddb+websocket' runs both
(recommended for browser deployments). 'memory' is for tests and
ephemeral rooms.
OptionalserverRequired when provider involves websocket.
OptionaltokenBearer token forwarded to the websocket server.
OptionalWebWs polyfill (e.g. ws package in Node tests).
Auto-connect the websocket on construction (default true).