CometChatWidget.createOrUpdateUser is not a function

CometChatWidget.createOrUpdateUser({
“uid”: “UID”,
“name”: “USERNAME”
});

documented here https://prodocs.cometchat.com/docs/web-chat-widget

appears to throw an error

CometChatWidget.createOrUpdateUser is not a function

Hi @mattlemi,

Unfortunately, we had to rollback yesterday’s release. So, the method to be used is CometChatWidget.updateUser as mentioned in the documentation.

1 Like

is that method synchronous? ie can i call that and then immediately call CometChat.login? Or do I need to wait for a callback?

Hi @mattlemi,
All the CometChatWidget methods are asynchronous and have callbacks.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.