Unjustified "transport close" #4078
Unanswered
sema-fedotov
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Good afternoon, everyone. At the moment, I am developing a React application. I use React and node.js and socket.io (in conjunction with the socket. io-client, both have a 4.2.0 version). I ran into the following problem: clicking the button triggers a click on the link
window.open("LINK", "_blank")
Code on the client:
Code on the server
But as soon as the link opens, the client loses connection to the server. The server receives the "disconnect" event due to "transport close", and the client receives the "disconnect" event a little later due to "ping timeout".
I also want to clarify that the problem does not manifest itself when exiting the application (for example, when clicking on a notification on a smartphone), after returning to the application everything functions as it should.
Everything works fine, except that the connection is lost.
But I solved the problem by switching to the version of one of my old projects (2.3.0). What could be the problem with version 4.2.0?
Beta Was this translation helpful? Give feedback.
All reactions