Ejemplo n.º 1
0
        /// <summary>
        /// Triggers clean up of used server implementations and clears the <see cref="NetworkEventDispatcher"/> event dictionary.
        /// </summary>
        public void Cleanup()
        {
            isAlive = false;
            NetworkEventDispatcher.ClearEventDictionary();

            webRTCServer.CloseConnection();
            webServer.CloseConnection();
        }
Ejemplo n.º 2
0
 private void PassReceivedMessage(NetworkEventType eventType, InputDataHolder data)
 {
     if (!isAlive)
     {
         return;
     }
     NetworkEventDispatcher.TriggerEvent(eventType, data);
 }