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
Currently we have a nest.js server with an old 2.x socket.io package. The goal is to upgrade to the latest version of socket.io by installing @nestjs/platform-socket.io v 8.4.6. However, there is some logic which should be updated as well.
We need to report a "connect_error" and then disconnect client under some conditions.
For 2.x version we did something like
client.error(errorObject)
client.disconnect()
For 4.x it does not seem to work. When I`m doing
client._error(errorObject)
client.disconnect()
client receives "connect_error" but does not receive "disconnect" event.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Currently we have a nest.js server with an old 2.x socket.io package. The goal is to upgrade to the latest version of socket.io by installing @nestjs/platform-socket.io v 8.4.6. However, there is some logic which should be updated as well.
We need to report a "connect_error" and then disconnect client under some conditions.
For 2.x version we did something like
For 4.x it does not seem to work. When I`m doing
client receives "connect_error" but does not receive "disconnect" event.
What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions