This page was last edited on August 31, 2020, at 20:44.
Comments or questions about this documentation? Contact us for support!
CometD Channel | /service/session/create |
---|---|
Description | Creates a new co-browse session. |
{}
{
"sessionToken": "123"
}
CometD Channel | /service/session/join |
---|---|
Description | Allows the user to join the session. |
{
"sessionToken": "123",
"role": 2, // 1 - customer, 2 - agent, 3 - controller
"name": "Bob" //optional (for controller it does not make sense at all)
}
{
"userToken": "abc789",
"userId": 2,
"users": [
{
"userId": "1",
"role": 1,
"name": "John"
}
],
"sessionHistoryId": "abc789"
}
Every connected user receives a userToken providing personalized session access.
CometD Channel | /service/session/exit |
---|---|
Description | Allows the user to exit the session explicitly. The CometD disconnection should be handled via session deactivated notification. |
{
userToken: "abc123"
}
{}
CometD Channel | /service/session/stop |
---|---|
Description | Stops the co-browse session. This is available for the Controller only. The session is deactivated and all users receive the session deactivated notification. |
{
userToken: "abc123"
}
{}