websocket connection to cloud server