0

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?

khan
  • 1

1 Answers1

0

You can leverage the functionTimeout global configuration option in your "host.json" file to decrease the function app timeout. The timeout can be set to minimum of 1 second to maximum according to the plan type. See functionTimeout per plan type.

You can find additional information regarding the timeout here.

This document regarding Azure Functions and Azure SignalR Service can be be helpful as well.

General Grievance
  • 4,555
  • 31
  • 31
  • 45
ChaitanyaN-MSFT
  • 466
  • 2
  • 5