This project is read-only.

Error in handshaking with Node.js Socket.IO specific version


I have used this library to communicate with Node.js server.
At the beginning of my project, I used Socket.IO version 0.9.16.
SocketIO4Net library works well with my server. However, it starts to throw error once I update Socket.IO library version 1.0. (The lastest also has problem.)

I also have another client for web browser which made of javascript, it works fine in the Chrome.
After I back to previous version of Socket.IO library, it seems to work properly.

Do you have any advise to solve this problem?
(If you need any further information, please let me know.)


wjdavis5 wrote Jul 21, 2014 at 6:04 PM

Same thing here - Currently trying to find troubleshooting tips.

wjdavis5 wrote Jul 21, 2014 at 6:15 PM

I figured this out - Originally I was using this:
socket = new Client("");
But I updated it to this - which I found whilst running Fiddler.

I figured this out by digging into the source (Client.cs) and referencing this line:
value = client.DownloadString(string.Format("{0}://{1}:{2}/{3}", uri.Scheme, uri.Host, uri.Port, uri.Query)); // #5 tkiley: The uri.Query is available in's handshakeData object during authorization
                    // 13052140081337757257:15:25:websocket,htmlfile,xhr-polling,jsonp-polling
socket = new Client("");