My app is an Azure Functions app and I am using Azure SignalR in it. I want to decrease the time of KeepAlive for this app. For web apps, I know that we can change KeepAlive interval like this
public void ConfigureServices(IServiceCollection services)
{
services.AddSignalR(hubOptions =>
{
hubOptions.EnableDetailedErrors = true;
hubOptions.KeepAliveInterval = TimeSpan.FromMinutes(1);
});
}
But how to change the interval in an azure functions app which uses signalR?