Websocket connection to publish transactions. Now includes a patched version of socketIO_client that sends a heartbeat at appropriate times