adding reconnect to proto-websocket demo