Beispiel #1
0
 private void InitMonitor()
 {
     ClientSocket.OnOpen += (sender, e) =>
     {
         Debug.Log("The websocket is open!");
     };
     ClientSocket.OnClose += (sender, e) =>
     {
         //Debug.Log("The websocket is Close");
         packetHandler.AddCloseMessage();
     };
     ClientSocket.OnError += (sender, e) =>
     {
         Debug.Log("The connected is error : " + e.Message);
         packetHandler.AddErrorMessage();
     };
 }