Skip to content

Configuring SignalR

davidfowl edited this page Feb 11, 2012 · 15 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);

Clone this wiki locally