Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

NodeJS Socket.io Server v^4.1.2 to 3.1 not connecting #11

Open
vamman opened this issue Jun 25, 2021 · 3 comments
Open

NodeJS Socket.io Server v^4.1.2 to 3.1 not connecting #11

vamman opened this issue Jun 25, 2021 · 3 comments

Comments

@vamman
Copy link

vamman commented Jun 25, 2021

Hello,

We have a NodeJS Server running your sample server js code from the project and when we connect a vanilla client to it we see the following:

Packet decoding failed. 0{"sid":"lmUcXoLUerfxDmQaAAAF","upgrades":["websocket"],"pingInterval":25000,"pingTimeout":20000} : System.FormatException: Input string was not in a correct format. at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at EngineIOSharp.Common.Packet.EngineIOPacket.Decode(Stream Stream, Boolean IsBinary) EngineIOSharp.Client.Transport.EngineIOPolling : EngineIOSharp.Common.EngineIOException: Transport is not opened. ReadyState : CLOSED

Is there a specific version of Socket.io on NodeJS that I should be using?

Thanks!

@mattv8
Copy link

mattv8 commented Jul 19, 2021

I'm having the same issue. Note the response 0{"sid":"lmUcXoLUerfxDmQaAAAF","upgrades":["websocket"],"pingInterval":25000,"pingTimeout":20000} is documented here: https://socket.io/docs/v3/troubleshooting-connection-issues/ which is a valid response from a NodeJS SocketIO server.
C#.NET version 4.7.2 running latest version of SocketIOSharp as a client.

@ELKABILLA
Copy link

Hi, im having this exact issue connecting to a Socket.IO v4.2.0 Server , before i was connecting against a v4.0 server, something broken maybe?
Tried via HTTPS and HTTP, none of them worked.
You guys founded a workaround ?

Thanks in advanced.

@mattv8
Copy link

mattv8 commented Oct 4, 2021

Unfortunately I was never able to find a workaround with @uhm0311's libraries. I was able to get up and running with Quobject/SocketIoClientDotNet which is a deprecated project but still working great for my needs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants