From 88ed8254af49eef9cf131236ba994d77d0b872e7 Mon Sep 17 00:00:00 2001 From: gamer147 Date: Sun, 31 May 2026 22:49:31 -0400 Subject: [PATCH] feat(emulated-entrypoint): wire AddBattleNode + UseBattleNode into the web host --- SVSim.EmulatedEntrypoint/Program.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/SVSim.EmulatedEntrypoint/Program.cs b/SVSim.EmulatedEntrypoint/Program.cs index f890e53..2a41a49 100644 --- a/SVSim.EmulatedEntrypoint/Program.cs +++ b/SVSim.EmulatedEntrypoint/Program.cs @@ -16,6 +16,7 @@ using SVSim.EmulatedEntrypoint.Extensions; using SVSim.EmulatedEntrypoint.Middlewares; using SVSim.EmulatedEntrypoint.Security.SteamSessionAuthentication; using SVSim.EmulatedEntrypoint.Services; +using SVSim.BattleNode.Hosting; namespace SVSim.EmulatedEntrypoint; @@ -116,6 +117,12 @@ public class Program #endregion + builder.Services.AddBattleNode(opt => + { + // ASPNETCORE_URLS defaults to http://localhost:5148; we map ws:// onto the same host:port. + opt.NodeServerUrl = "ws://localhost:5148"; + }); + builder.Services.AddTransient(); builder.Services.AddTransient(); builder.Services.AddSingleton(); @@ -163,6 +170,7 @@ public class Program app.UseAuthorization(); + app.UseBattleNode(); app.MapControllers();