How to configure disconnectTimeout ?

Issue #7 open
Former user created an issue

Hello,

I am currently using your great module in my webapp. However, I cannot get around the task of tweaking the various timouts.

I tried injecting an IConfigurationManager into my hub and modifying the timeout, but nothing changes.

    using Microsoft.AspNet.SignalR;
    using Microsoft.AspNet.SignalR.Configuration;

    [HubName("CrappyHub")]
    public class CrappyHub : Hub
    {
        public CrappyHub(IConfigurationManager configurationManager):base() {
            configurationManager.DisconnectTimeout = TimeSpan.FromSeconds(31);
        }
        // ...
}

What do I miss?

Thanks in advance!

Comments (2)

  1. Log in to comment