Added reconnecting websocket script in preparation for adding websockets.