As opposed to close(), which actively closes the session, the onClosed method is called when the underlying connection has been closed or disconnected.
As opposed to close(), which actively closes the session, the onClosed method is called when the underlying connection has been closed or disconnected.