Jump to: navigation, search

Server-Initiated CometD Channels (Notifications)

Joined Session

CometD Channel /service/session/joined
Description Notification to all users who are already in the session about a new joined user.

Notification:

{
  "userId": "2",
  "role": 2,
  "name": "Bob"
}

Activated Session

CometD Channel /service/session/activated
Description Notification to all clients about session activation.

Notification:

{
  "activationTime": 1368722791040 // UTC time in ms
}

Deactivated Session

CometD Channel /service/session/deactivated
Description Notification to all clients about session deactivation. When the client receives a session deactivated notification, it should disconnect from CometD. Sending the exit session command is not needed.

Notification:

{
  "activationTime": 1368722791040 // UTC time in ms
  "deactivationTime": 1368722820929 // UTC time in ms
}

Feedback

Comment on this article:

blog comments powered by Disqus
This page was last modified on 2 March 2018, at 10:57.