How to increase timeout setting in ASP.NET Core SignalR v2.1?

前端 未结 2 1558
清歌不尽
清歌不尽 2021-02-14 07:42

I\'m trying out the latest SignalR on ASP.NET Core 2.1. I have the basic app working but it times out pretty soon right now. I see this error -

Error: Co

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-14 07:59

    in startup.cs

    services.AddSignalR(hubOptions =>
                {
                    hubOptions.EnableDetailedErrors = true;
                    hubOptions.KeepAliveInterval = TimeSpan.FromMinutes(60);
                })
    

提交回复
热议问题