wait until WebSocket is opened