feat: implement Routing Feedback WebSocket service and associated request handlers

This commit is contained in:
Neil Dorin 2026-06-22 21:30:47 -06:00
parent be545bbfa4
commit b65f895e06
7 changed files with 812 additions and 5 deletions

View file

@ -75,6 +75,20 @@ public class DebugWebsocketSink : ILogEventSink, IKeyed
/// </summary>
public bool IsRunning { get => _httpsServer?.IsListening ?? false; }
/// <summary>
/// Gets a value indicating whether there are active WebSocket connections.
/// </summary>
public bool HasActiveConnections
{
get
{
if (_httpsServer == null || !_httpsServer.IsListening) return false;
var service = _httpsServer.WebSocketServices[_path];
if (service == null) return false;
return service.Sessions.Count > 0;
}
}
/// <inheritdoc/>
public string Key => "DebugWebsocketSink";