onUnexpectedDisconnect

open override fun onUnexpectedDisconnect()

Method is invoked when chat session is unexpectedly lost. Chat instance should be considered unusable, until reconnect is performed. If this method is invoked while the Chat.reconnect is being performed, then application should consider the reconnection attempt as failed. It is recommended that only a limited number of reconnection attempts are performed. If the problems persist despite the fact that the device has internet connectivity, then please collect logs (assuming the development mode is enabled) and contact your CXone representative with request for support. Integration should also check for possibly lost incoming messages & thread changes once reconnection is done.