//public void EnableLiveQuery() //{ // _ws = new WebSocket("ws://ec2-52-63-31-67.ap-southeast-2.compute.amazonaws.com:1337/"); // _ws.Open(); // _ws.Opened += (sender, e) => // { // _ws.Send(Newtonsoft.Json.JsonConvert.SerializeObject(new { op = "connect", applicationId = "SuperMen", windowsKey = "rickpham" })); // }; // _ws.MessageReceived += (sender, e) => // { // Debug.WriteLine(e.Message); // Debug.WriteLine(_ws.State); // }; // _ws.Error += (sender, e) => // { // Debug.WriteLine(e.Exception); // }; // Debug.WriteLine(_ws.State); //} //public void Subscribe() //{ // _ws.Send(Newtonsoft.Json.JsonConvert.SerializeObject(new { op = "subscribe", requestId = 1, query = new { className = "Message", where = new { conversationId } } })); //} public async Task GetConversationIdAsync() { try { conversationId = await ParseAccess.GetConversationId(otherUserId); } catch (Exception ex) { Debug.WriteLine(ex); } }