Socket.io 400 (Bad Request)
I think an older version of socket-io
could be the reason.
I was getting this problem when I was using 0.9.16
version. I upgraded to following and it worked.
<script src="https://cdn.socket.io/socket.io-1.0.6.js"></script>