Server-Initiated CometD Channels (Notifications)
Contents
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 modified on March 2, 2018, at 09:57.
Feedback
Comment on this article: