Nurama Developers
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.

PropertyTypeRequiredDescription
requesterSocketIdstringno
pathsobject[]noPath objects: { pathId, userId, color, strokeWidth, pathData, fadeDuration, createdAt }.
regionsobject[]noRegion objects: { regionId, startTime, endTime, userId, displayName, color, avatarUrl }.
zoomnumbernoZoom level, omitted when the responder did not supply a number.
timestampintegerno

On this page