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
}
This page was last edited on February 23, 2017, at 21:30.
Comments or questions about this documentation? Contact us for support!