Change KA Interval To 15 Seconds
This commit is contained in:
parent
a7dda238ce
commit
eca5d13098
@ -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");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user