getName( )

The getname API helps to get the name of user who is online by the userid.

API:

Get the name of user stored in the current session by the ‘userid’.

jqcc.cometchat.getName('USERID');

Sample:

jqcc.cometchat.getName('123');

Not finding what you need?

The CometChat team is here to help!