Skip to content

Configuring SignalR

davidfowl edited this page Nov 10, 2011 · 15 revisions

Configuring SignalR

Changing the timeout for long polling connections

By default SignalR's long polling transport polls for 2 minutes 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 Signaler.Instance.DefaultTimeout property:

**Example (Global.asax) **

 Signaler.Instance.DefaultTimeout = TimeSpan.FromSeconds(25);

Clone this wiki locally