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