Change KA Interval To 15 Seconds

This commit is contained in:
Alan Moon 2025-07-31 14:53:30 -07:00
parent a7dda238ce
commit eca5d13098

View File

@ -27,7 +27,7 @@ builder.Services.AddDbContext<DataContext>();
builder.Services.AddSignalR().AddHubOptions<ChatHub>(options =>
{
options.EnableDetailedErrors = true;
options.KeepAliveInterval = TimeSpan.FromMinutes(1);
options.KeepAliveInterval = TimeSpan.FromSeconds(15);
});
builder.Services.AddStackExchangeRedisCache(options =>
@ -87,6 +87,7 @@ app.MapHub<ChatHub>("/chat", options =>
{
options.Transports = Microsoft.AspNetCore.Http.Connections.HttpTransportType.WebSockets |
Microsoft.AspNetCore.Http.Connections.HttpTransportType.LongPolling;
options.
});
app.MapHub<TicTacToeHub>("/tttgame");