Setup
Server
Client
Use the provider-agnostic API to connect SuperDoc:modules.collaboration = { ydoc, provider }.
React example
Server configuration
Basic options
Hooks
| Hook | Purpose |
|---|---|
onLoadDocument | Load document from storage |
onStoreDocument | Save document to storage |
onAuthenticate | Validate user tokens |
onChange | React to document changes |
onConnect | Handle new connections |
onDisconnect | Handle disconnections |

