I'm working on a socket.io server implementation in rust and I use a lot your socket.io and engine.io test-suite. I have some problems with the test should ignore WebSocket connection with same sid after upgrade though.
In the first implementation it waits for the second socket to close whereas in the second implementation it waits for the second socket to throw an error. Therefore I have some problems testing my implementation :
First I had to make it return a 400 bad request when upgrading the second socket (to match the second implementation) but then to match the first implementation I had to gracefully close the connection (and then the second doesn't work correctly).
I suppose there is a solution to match both implementation in node but I don't know if I could do the same in rust.
Hi !
I'm working on a socket.io server implementation in rust and I use a lot your socket.io and engine.io test-suite. I have some problems with the test
should ignore WebSocket connection with same sid after upgrade
though.The implementation in the socket.io-protocol is :
The implementation in the engine.io-protocol is :
In the first implementation it waits for the second socket to close whereas in the second implementation it waits for the second socket to throw an error. Therefore I have some problems testing my implementation :
First I had to make it return a 400 bad request when upgrading the second socket (to match the second implementation) but then to match the first implementation I had to gracefully close the connection (and then the second doesn't work correctly).
I suppose there is a solution to match both implementation in node but I don't know if I could do the same in rust.
Thanks for your help !