fix for interface.client.js, sockets no longer attempt to send data before they are connected.