Node.js and Socket.IO do not respond on some servers

I have simple Node.js and Socket.IO applications running on Nodejitsu. The application works great from home and some other Internet services, but it doesn’t work out of my work!

Here is the error message I get

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 

Could you tell me why this is happening? is this a firewall problem?

thanks

+4
source share
1 answer

After talking with you on the #nodejitsu IRC channel, it seems like it really could be a problem with your proxy / firewall.

As was suggested to you in a chat last night, you can always try to use secure connections to websites (wss, not ws) to make sure that this allows your connections to go through.

If this does not work, you will need to send your connection outside your working connection. For example, proxying to your computer at home and using your home network while you work and you want to use websites.

+2
source

Source: https://habr.com/ru/post/1484858/


All Articles