Keep Default KA Values
This commit is contained in:
parent
c6b8e15643
commit
b4c1afc3b5
@ -27,7 +27,6 @@ builder.Services.AddDbContext<DataContext>();
|
|||||||
builder.Services.AddSignalR().AddHubOptions<ChatHub>(options =>
|
builder.Services.AddSignalR().AddHubOptions<ChatHub>(options =>
|
||||||
{
|
{
|
||||||
options.EnableDetailedErrors = true;
|
options.EnableDetailedErrors = true;
|
||||||
options.KeepAliveInterval = TimeSpan.FromMinutes(1);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Services.AddStackExchangeRedisCache(options =>
|
builder.Services.AddStackExchangeRedisCache(options =>
|
||||||
@ -83,11 +82,7 @@ app.UseAuthorization();
|
|||||||
|
|
||||||
app.MapControllers();
|
app.MapControllers();
|
||||||
|
|
||||||
app.MapHub<ChatHub>("/chat", options =>
|
app.MapHub<ChatHub>("/chat");
|
||||||
{
|
|
||||||
options.Transports = Microsoft.AspNetCore.Http.Connections.HttpTransportType.WebSockets |
|
|
||||||
Microsoft.AspNetCore.Http.Connections.HttpTransportType.LongPolling;
|
|
||||||
});
|
|
||||||
app.MapHub<TicTacToeHub>("/tttgame");
|
app.MapHub<TicTacToeHub>("/tttgame");
|
||||||
|
|
||||||
app.Run();
|
app.Run();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user