KestrunHostSignalRExtensions.GetConnectedClientCount method

Gets the number of currently connected SignalR clients if the Kestrun hub is configured.

public static int? GetConnectedClientCount(this KestrunHost host)
parameter description
host The KestrunHost instance.

Return Value

The count of connected clients, or null if SignalR hub/connection tracking is not configured.

See Also