Open dcsan opened 5 years ago
no.
{
“chatId”: “bcdw2j234ko1”,
“token”: “abcd”,
“messageType”: 1, // MessageType, check below
“payload”: {
“text”: “Hello World”
}
}
is data format when you are sending messages. but
{
data: {
messageId: 'xxx',
chatId: 'xxxxx',
roomTopic: 'edm test',
roomId: 'xxxx@chatroom',
contactName: 'me',
contactId: 'xxxx',
payload: {
text: 'test'
},
type: 7,
timestamp: 1560801152000,
token: 'xxxx'
}
}
is data format when you are receiving messages.
Your docs say to expect:
but in fact it's just
type
and notmessageType