POST /api/v1/documents/{id}/live with documents:read. The app's signed-in student path is a separate opted-in session route; the student-pool JWT itself is not accepted by the public wrapper. A managed student key is still subject to document access, its scopes, the issuing plan and effective policy.liveEditing policy must permit it. For personal documents, the user instead needs an eligible organisation membership. Organisation-owned tokens and isolated app-testing tokens cannot become live participants.viewer or editor role. Use the returned URL and token, convert HTTPS to WSS, and URL-encode the token. Never put a REST API key into the socket query. Room admission lasts ten minutes; obtain fresh admission on reconnect.welcome, role, readonly and denied statuses immediately and retain local work after an unexpected disconnect.| Type | Frame | Meaning |
|---|---|---|
| 0 | SYNC | Yjs state vector or update, with sync step and length-prefixed payload |
| 1 | AWARENESS | Length-prefixed awareness update |
| 2 | STATUS | Server JSON status inside a binary string field |
| 3 | QUERY | Ask for current awareness state |
| 4 / 5 | PING / PONG | Application heartbeat frames |
| 6 | TEXT | Subscribe to or receive full text |
| 7 | SPLICE | UTF-16 index, deletion count and inserted string |
409 live_session_active.