cometchat / chat-sdk-javascript

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

Shutdown Client #84

Closed mattensor closed 2 years ago

mattensor commented 2 years ago

Describe the problem

Hey 👋 I have a use case to shutdown the CometChat client, essentially an undo of the init function. Is there an simple way to do this?

Thanks

mayur-bhandari commented 2 years ago

Hi @Mattensor,

Sorry for the delayed response. You can use the CometChat.logout() method to shut down the client. You can read more about this method here.

Hope this helps.