...
Code Block |
---|
|
{
"data" : {
"replyTo" : "",
"id" : "17909c52-1f26-402c-90cb-3106ba80bb3b",
"messageType" : "LINK",
"content" : {
"url" : "https://www.google.it",
"user" : {
"id" : "USER_gverde1@acd.enghouse.com",
"isAgent" : true
}
},
"ts" : 1643191666618.0,
"deliverySuccess" : true,
"deliveryErrorReason" : ""
},
"_id" : ObjectId("61f11d7cd42454470cb22da7"),
"room" : "CHAT_DEFAULT_a098a0bc-b34c-452c-829c-1b03aa7a67ee"
} |
...
Video message:
All video messages have the audio and video boolean properties to indicate the channel used.
Name | Type | Description |
---|
audio | | if true the audio chennel is engaged |
video | | if true the video chennel is engaged |
Examples
videoRequestedByCustomer message
Code Block |
---|
|
{
"data" : {
"id" : "c6d3e132-4432-4208-943d-cc2b34ba3107",
"messageType" : "videoRequestedByCustomer",
"ts" : 1617786830148.0,
"deliverySuccess" : true,
"deliveryErrorReason" : "",
"content" : {
"user" : {
"isAgent" : false,
"id" : "USER_DEFAULT_9a0a411c-f9c7-4af7-9754-024bf157a3ef"
},
"audio" : true,
"video" : true
}
},
"_id" : ObjectId("606d7810d6e88353f88732a1"),
"room" : "CHAT_DEFAULT_d06723cf-518e-4767-99b6-6d21d5998081"
} |
videoAccepted message:
Code Block |
---|
|
{
"data" : {
"id" : "715a2213-3123-4718-8266-a489bebc493b",
"messageType" : "videoAccepted",
"ts" : 1617786834240.0,
"deliverySuccess" : true,
"deliveryErrorReason" : "",
"content" : {
"user" : {
"isAgent" : true,
"id" : "USER_gverde1@acd.enghouse.com"
},
"audio" : true,
"video" : true
}
},
"_id" : ObjectId("606d7810d6e88353f88732a0"),
"room" : "CHAT_DEFAULT_d06723cf-518e-4767-99b6-6d21d5998081"
} |
videoStarted message:
Code Block |
---|
|
{
"data" : {
"id" : "cfa53427-1ee7-4e8f-9848-e8e87523aec4",
"messageType" : "videoStarted",
"deliverySuccess" : true,
"deliveryErrorReason" : "",
"ts" : 1617786839849.0,
"content" : {
"user" : {
"isAgent" : true,
"id" : "USER_gverde1@acd.enghouse.com"
},
"audio" : true,
"video" : true
}
},
"_id" : ObjectId("606d7810d6e88353f887329f"),
"room" : "CHAT_DEFAULT_d06723cf-518e-4767-99b6-6d21d5998081"
} |
screenSharingStarted message:
Code Block |
---|
|
{
"data" : {
"id" : "227130be-f490-4ef2-9923-9bb69ad6756c",
"messageType" : "screenSharingStarted",
"deliverySuccess" : true,
"deliveryErrorReason" : "",
"ts" : 1617786873764.0,
"content" : {
"user" : {
"isAgent" : true,
"id" : "USER_gverde1@acd.enghouse.com"
},
"audio" : true,
"video" : true
}
},
"_id" : ObjectId("606d7810d6e88353f887329c"),
"room" : "CHAT_DEFAULT_d06723cf-518e-4767-99b6-6d21d5998081"
} |
videoEnded message:
Code Block |
---|
|
{
"data" : {
"id" : "a8ffdf71-ad3e-4495-ba91-057442df88c0",
"messageType" : "videoEnded",
"deliverySuccess" : true,
"deliveryErrorReason" : "",
"ts" : 1617786886374.0,
"content" : {
"user" : {
"isAgent" : true,
"id" : "USER_gverde1@acd.enghouse.com"
},
"audio" : true,
"video" : true
}
},
"_id" : ObjectId("606d7810d6e88353f887329a"),
"room" : "CHAT_DEFAULT_d06723cf-518e-4767-99b6-6d21d5998081"
} |
endChat message:
Name | Type | Description |
---|
user | | Semplified user object containing only user id and isAgent properties of the user who sent the message. |
Example
Code Block |
---|
|
{
"data" : {
"id" : "b88d3de0-23b8-41d1-95c3-1209dd4c8cff",
"messageType" : "endChat",
"ts" : 1617786896642.0,
"deliverySuccess" : true,
"deliveryErrorReason" : "",
"content" : {
"user" : {
"isAgent" : false,
"id" : "USER_DEFAULT_9a0a411c-f9c7-4af7-9754-024bf157a3ef"
}
}
},
"_id" : ObjectId("606d7810d6e88353f8873297"),
"room" : "CHAT_DEFAULT_d06723cf-518e-4767-99b6-6d21d5998081"
} |