Beispiel #1
0
 public void OnDestroy()
 {
     Debug.Log("WebSockets discarded");
     if (pongWebSockets != null)
     {
         pongWebSockets.Dispose();
         pongWebSockets = null;
     }
 }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     pongWebSockets = new PongWebSockets();
     pongWebSockets.wsMessageArrived += PongWebSockets_wsMessageArrived;
     Application.runInBackground = true;
 }