Hi,
I have been messing with Zacko's socket.io plugin for a bit, learning javascript as I go.
I have got an environment setup where I can get two clients to handshake.
But an interesting bug / limitation has come to my notice.
Download this:
dl.dropbox.com/u/24356445/socketiostuff.zip
Unzip
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?
If you disconnect-> go to layout 1 -> and look into your javascript console for errors, you see a call to OnDisconnect (from the socket.io plugin) on a null object. So basically the application crashes.
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.