コード例 #1
0
ファイル: Process.cs プロジェクト: tks17g/cortex-example
 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();
 }