AI agents: fetch the documentation index at llms.txt. Markdown versions are available by appending .md to any page URL, including this page's markdown.
YjsPresenceManager
Manages presence signaling, view/edit tracking, and session state for collaborative editing.
Tracks which documents you're viewing and editing, signals state to the server, and receives session updates with active participants.
Creating an instance
Use the same clientId and connId values as your YjsDocumentManager.
import { YjsPresenceManager } from "@stratasync/y-doc";
const presenceManager = new YjsPresenceManager({
clientId: "client-abc-123",
connId: "conn-xyz-456",
});PresenceManagerConfig
| Property | Type | Description |
|---|---|---|
clientId | string |