I'm currently considering CSRF vulnerabilities in websockets.
I've already blocked all cross-domain websocket requests, however there exist scripts (such as this python bad boy) to get around such security measures.
Is it worth including a token in the user's index.html, which must be included in the socket.io.connect() call as a query string? This way on the server we can check that the token is what we expected, and block the connection request otherwise.
Thanks for all the advice!