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.
Users keep using it expecting it to be a public method even though it is not documented
* #1013
* b25e478
* #974
I guess that's fair, I'll create a new `disconnect` method that is safe to use.
Users keep using it expecting it to be a public method even though it is not documented
* #1013
* b25e478
* #974
I guess that's fair, I'll create a new `disconnect` method that is safe to use.
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: