cometchat / chat-sdk-javascript

Voice & Video Calling and Text Chat SDK for JavaScript/Web
Other
30 stars 24 forks source link

Using async-await with CometChat.init #17

Closed ketanyekale closed 5 years ago

ketanyekale commented 5 years ago

Cometchat.init does not resolve to boolean true on success, so when using async-await, we cannot be sure if the init was successful.

mayur-bhandari commented 5 years ago

The init method returns a promise so you can use .then to be sure that the init was successful.