Updated to XSockets 3
R# cleanup
Now the client will call webSocket.close before page unloads :)