The getname API helps to get the name of user who is online by the userid.
Get the name of user stored in the current session by the ‘userid’.
jqcc.cometchat.getName('USERID');
jqcc.cometchat.getName('123');
Not finding what you need?
The CometChat team is here to help!