private void StartAsyncServer(ushort port) { asyncServer = new Mirror.Tcp.Server(); asyncServer.ReceivedData += (connId, data) => { asyncServer.Send(connId, new ArraySegment <byte>(data)); }; _ = asyncServer.ListenAsync(port); started = true; Debug.Log($"Async Tcp started at port {port}"); }
public override void ServerStart() { _ = server.ListenAsync(port); }