Thanks Jukka-Pekka Kekkonen. It was a firewall issue
Since I posted this thread 6 days ago I figured out that Avast
Antiivirus blocked all websocket communications. If I stop the web
agent, websockets start working.
I tried creating an exception in Avast, but it doesn't work. Avast
sucks.
I removed tryTransportsOnConnectTimeout: false from my options
arguments, and
socket.io is falling back to xhr-polling and works fine
even if there is some disconnections some times and I need to deal
with that in the client side (reconnect each time disconnection
happens), and it is quite easy to handle.
Now, I have a problem with the same origin policy in Chrome/
websockets. Why Chrome throws this error when the page loads from
domain.com and the websocket connects to
comet.domain.com ? Isn't it
the same domain? What security risk is there?
How could I still serve my website from my old server, and running
websocket on nodejs server hosted on nodester for example?
On May 10, 11:29 am, Jukka-Pekka Kekkonen <
karatepe...@gmail.com>
wrote: