private void Connected(object sender, bool isConnected) { if (isConnected) { Console.WriteLine("Websocket Client Connected"); // Query user login if (!AccessCtr.IsLogin) { AccessCtr.QueryUserLogin(); } // Query Headset if (!HeadsetCtr.IsConnected) { HeadsetCtr.QueryHeadsets(); } } else { Console.WriteLine("Websocket Client disconnect"); if (SessionCtr.IsCreateSession) { CloseSession(); } // Clear session SessionCtr.ClearSessionControllerData(); } }
private void DisconnectHeadsetReceived(object sender, string headsetID) { Console.WriteLine("Disconnect headset " + headsetID); // Clear session //if (SessionCtr.IsCreateSession) // CloseSession(); SessionCtr.ClearSessionControllerData(); }
private void DisconnectHeadsetReceived(object sender, string headsetID) { //Console.WriteLine("Disconnect headset " + headsetID); output.text = "Disconnect headset " + headsetID; if (SessionCtr.IsCreateSession) { CloseSession(); } // Clear session SessionCtr.ClearSessionControllerData(); }