Reconnection fixes.
When reconnecting with a new transport, we call setUserJID so that a new resource is generated, to avoid multiple server-side sessions with the same resource. We also call `_proto._doDisconnect` so that connection event handlers for the old transport are removed.
Showing
Please register or sign in to comment