forked from SignalR/SignalR
-
Notifications
You must be signed in to change notification settings - Fork 0
Configuring SignalR
davidfowl edited this page Apr 17, 2012
·
15 revisions
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);