private void Update() { if (telepathyServer != null) { while (telepathyServer.GetNextMessage(out Telepathy.Message message)) { if (message.eventType == Telepathy.EventType.Data) { telepathyServer.Send(message.connectionId, message.data); } } } else if (saeaServer != null) { while (saeaServer.GetNextMessage(out Mirror.Saea.Message message)) { if (message.eventType == Mirror.Saea.EventType.Data) { saeaServer.Send(message.connectionId, message.data); } } } else if (asyncServer != null) { asyncServer.Flush(); } }
public void LateUpdate() { server.Flush(); }