I have got an environment setup where I can get two clients to handshake.
But an interesting bug / limitation has come to my notice.
execute runserver.bat. This runs the server. I have included the socket.io module in the same folder. If you have issues setting this up, look at Zacko's page about installing nodejs and socketio.
now openup the socketiostuff.caproj, this is a simple two layout project, where if you click, you move to layout two, which initializes the "handshaking" (connects to localhost), if you click again, you disconnect from the server.
What is interesting is if you disconnect, it seems to be destroying the plugin instance?
I noticed this first when trying to have two clients on localhost, while trying to test my handshaking stuff. The examples we have seen on socket.io do not cover disconnect. (but it is of course essential that you disconnect from the server when needed)
I will dig into the socket.io code later, but just wanted everyone to know this happens.