You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can we do this : if (!this.socket) {
console.warn("No active socket to disconnect.");
return; // Exit if there is no socket to disconnect
}
This will give a warning that socket does not exist and and the line (this.socket.end) will not run and it will not throw an error.
Describe the bug
Calling
client?.disconnect
it's possible thatthis.socket
is undefinedLogs
I didn't get a chance to reproduce it locally. Only attaching sentry logs
I suspect it could be a case when client is already disconnected but please let me know if I should provide more logs/reproduction
Environment
Browser
The text was updated successfully, but these errors were encountered: