Nurama Developers
Events

Emit collab:join

A user joined the collab session on this chat namespace (broadcast to the other members).

client → server on the collab channel. Socket.IO event name: collab:join.

A user joined the collab session on this chat namespace (broadcast to the other members).

Client emits collab:join with optional { preferredAnnotationColor }. Client -> server -> all other sockets in the same /chat/{chatId} namespace. The server spreads the client payload and appends the authenticated user identity (userId, displayName, color, avatarUrl), the annotationColor assigned on collab:join and a timestamp; client supplied values for those keys are overwritten. The joining socket additionally receives collab:self-color, collab:members (if others are present) and either collab:presenter-assign (first member) or collab:presenter-state.

Payload: collab:join

Payload of the 'collab:join' socket event.

PropertyTypeRequiredDescription
preferredAnnotationColorstringnoEcho of the colour the client asked for, if it sent one.
userIdstringnoAuthenticated user ID (server supplied, cannot be spoofed).
displayNamestring | nullnoDisplay name (falls back to first + last name).
colorstring | nullnoThe user's profile colour.
avatarUrlstring | nullnokeyPath of the user's avatar thumbnail file, if any.
annotationColorstringnoAnnotation colour assigned to this user for the collab session.
timestampintegernoServer time in milliseconds since epoch when the event was relayed.

On this page