Support one-to-one, chat room and other scenarios
Request a connection ws://127.0.0.1/imi/{user_id}
Join a chat room
http://127.0.0.1/member/add/room
Request the POST parameter
{
“room_id”: “1”,
“user_id”: “4”
}
Send a message
http://127.0.0.1/send/msg
{
“id”: “a001”,
“app_key”: “c-x”,
“cmd”: “text”,
“type”: “group”,
“send_user”: {
“id”: “1”,
“avatar”: “images/xxx.png”,
“nickname”: “Human”
},
“to_user”: {
“id”: “1”,
“avatar”: “images/xxx.png”,
“name”: “Earth”
},
“data”: “Hello”,
“notification”: {
“title”: “NEW”,
“body”: “Hello”
}
}