Skip to content

Configuring SignalR

mitcht edited this page · 17 revisions

Configuring SignalR

Changing the timeout for connections

By default SignalR's long polling transport polls for 110 seconds before returning from the server and trying again. In certain circumstances, you might not want to have a connection to the server opened for that long (e.g proxy timeouts etc.). You can tweak this setting by changing the ReconnectionTimeout on IConfigurationManager:

ASP.NET Example (Global.asax)

 var config = AspNetHost.DependencyResolver.Resolve<IConfigurationManager>(); 
 config.ReconnectionTimeout = TimeSpan.FromSeconds(25);
Something went wrong with that request. Please try again.