Skip to content

If a connection is opened a little while after the first and they are multiplexed then it fails #2011

Answered by miguelgrinberg
Spitfire972 asked this question in Q&A
Discussion options

You must be logged in to vote

Did you notice in your WebSocket screen capture that the client sent two connection requests for /test2? These are the lines that with 40/test2,.

The server responded with a successful connection to the first of them. This is the line that reads 40/test2,{"sid":"..."}. It responded with a Unable to connect error to the second connection request, because you can't have two connections to the same namespace on the same Engine.IO transport.

I don't know why the client is sending two connections. This must have been a bug in the 4.6.0 version that you are using. The 4.7.2 release does not seem to do this.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Spitfire972
Comment options

@Spitfire972
Comment options

Answer selected by Spitfire972
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants