Waiting for the websocket to open