Events
Emit collab:state-response
Server -> the requesting socket only: sanitised snapshot of paths, regions and zoom provided by an existing member.
client → server on the
collab channel. Socket.IO event name: collab:state-response.Server -> the requesting socket only: sanitised snapshot of paths, regions and zoom provided by an existing member.
Client emits collab:state-response with { requesterSocketId, paths, regions, zoom }; the server validates/truncates (max 200 paths and 200 regions, string length limits) and forwards it only to requesterSocketId.
Payload: collab:state-response
Payload of the 'collab:state-response' socket event.
| Property | Type | Required | Description |
|---|---|---|---|
requesterSocketId | string | no | |
paths | object[] | no | Path objects: { pathId, userId, color, strokeWidth, pathData, fadeDuration, createdAt }. |
regions | object[] | no | Region objects: { regionId, startTime, endTime, userId, displayName, color, avatarUrl }. |
zoom | number | no | Zoom level, omitted when the responder did not supply a number. |
timestamp | integer | no |