wss://[ABC.DOMAIN.COM]/websocket
I am using websocket of rocket chat.
This is one of the message from the list of messages response the websocket provides.
{
"_id": "some id",
"t": "au",
"rid": "some id",
"ts": {
"$date": 1663823165892
},
"msg": "7d4e5ab4-34ca-11ed-b29a-7cc2c61d171e",
"u": {
"_id": "some id",
"username": "svc_site_prod",
"name": "svc_site_prod"
},
"groupable": false,
"_updatedAt": {
"$date": 1663823165902
}
}
It uses t = "au" for added user and "ru" for removed user. The real user added is present in "msg". But it only shows the username of user who is added or removed. I want the full name of this user.
I know I can just make another request to find the user's info by api. But what I want is to get the details in this response.
Edit: the headers of request
{
"msg": "method",
"method": "loadHistory",
"id": "1",
"params": [
"AyzhtTJiE6YG3cnfA",
null,
50,
null
]
}