/// <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(); }