Question

I have simple Node.js and Socket.IO app running on Nodejitsu. The App is running perfectly from home and some other Internet services but not working from my work!

Here is the error Message which I am getting

 The connection to ws://behseini-socketproject.jit.su/socket.io/1/websocket/QtVm6E79WwGLwBVjN7el was interrupted while the page was loading.
 this.websocket = new Socket(this.prepareUrl() + query);

 socket.io.js (line 2371)
 GET http://behseini-socketproject.jit.su/socket.io/1/?t=1370531712581      200 OK
                                                                    535ms   
 socket.io.js (line 1659)
 ParamsHeadersResponse

 fPtjDNnugmPPXKbnN7ep:60:60:websocket,htmlfile,xhr-polling,jsonp-polling

Can you please let me know why this is happening? is this kind of Firewall issue?

Thanks

Was it helpful?

Solution

After talking with you on the #nodejitsu IRC channel, it seems that this may indeed be a problem with your work proxy/firewall.

As was suggested to you in the chat last night, you could always try to use secure websocket connections (wss rather than ws) to see if that will allow your connections to pass through.

If that doesn't work, you would need to send your connection outside of your work's connection. For instance, proxying into a computer at your home and using your home network while you're at work and want to use websockets.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top