예제 #1
0
 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();
     }
 }
예제 #2
0
 private void DisconnectHeadsetReceived(object sender, string headsetID)
 {
     Console.WriteLine("Disconnect headset " + headsetID);
     // Clear session
     //if (SessionCtr.IsCreateSession)
     //    CloseSession();
     SessionCtr.ClearSessionControllerData();
 }
예제 #3
0
 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();
 }