Sergii Boiko
Sergii Boiko
I've applied patch from @dominiek by myself and it works perfectly! Thanks, @dominiek.
I use sio without load-balance and checking the log, observed that "not handshaken" is reproduced, but with very-low pace compared to case without @dominiek patch.
.emit - produce pure json-event. It can be tricky to put binary into it. Another caveat is a support of binaries in node.js < 5.x. All data came from socket...
The last issue will be with browsers. I wonder how they can deal with binary data. Javascript doesn't support binary strings or something similar. V8 will definitely harm all non-utf8...
Scaling is an advanced topic, so dive into manuals. +1 for HAProxy
It's node.js issue. I use node.js 0.4.12 and it works fine. Many errros has been reported for 0.6.x versions.
Use official client: https://github.com/LearnBoost/socket.io-client with the same version(just get 'master' HEAD revision)
Looks, like you are trying to use client-library which is targeted for in-browser use, not in node.js.
You can't share one connection between different tabs in browser. It's a browser limitation, not a socket.io client. So, you can't use same socket.io channel for all tabs.
@KyleAMathews and @rayui, it would be much easier to debug this issue, if you provide next information: - Version of node.js and Socket.IO - Relation between main-site and comet-site: domain-name...