Прочитав документацию для SignalR events here, я определил этот раздел:
Когда соединение неактивно, периодически сервер отправляет пакет проверки активности клиента. По состоянию на сегодняшний день эта статья была написана, частота по умолчанию каждые 10 секунд
Существует раздел, в котором описывается, как изменить настройки, например KeepAlive
protected void Application_Start(object sender, EventArgs e)
{
// Make long polling connections wait a maximum of 110 seconds for a
// response. When that time expires, trigger a timeout command and
// make the client reconnect.
GlobalHost.Configuration.ConnectionTimeout = TimeSpan.FromSeconds(110);
// Wait a maximum of 30 seconds after a transport connection is lost
// before raising the Disconnected event to terminate the SignalR connection.
GlobalHost.Configuration.DisconnectTimeout = TimeSpan.FromSeconds(30);
// For transports other than long polling, send a keepalive packet every
// 10 seconds.
// This value must be no more than 1/3 of the DisconnectTimeout value.
GlobalHost.Configuration.KeepAlive = TimeSpan.FromSeconds(10);
RouteTable.Routes.MapHubs();
}
Таким образом, вы можете изучить уменьшение этого значения, чтобы быстрее получать уведомление о том, когда соединение с клиентом ушло.
Привет @JasonEvans, спасибо за ссылку. –