Disconnect from ChatEngine

Disconnect from ChatEngine

The disconnect() method allows you to disconnect a user from ChatEngine. You should call the method before exiting the application so connections with PubNub are closed gracefully.

ChatEngine.disconnect();