< Summary - Kestrun — Combined Coverage

Information
Class: Public.Sse.Get-KrSseConnectedClientCount
Assembly: Kestrun.PowerShell.Public
File(s): /home/runner/work/Kestrun/Kestrun/src/PowerShell/Kestrun/Public/Sse/Get-KrSseConnectedClientCount.ps1
Tag: Kestrun/Kestrun@ca54e35c77799b76774b3805b6f075cdbc0c5fbe
Line coverage
0%
Covered lines: 0
Uncovered lines: 3
Coverable lines: 3
Total lines: 26
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Coverage history

Coverage history 0 25 50 75 100 01/12/2026 - 18:03:06 Line coverage: 0% (0/3) Total lines: 26 Tag: Kestrun/Kestrun@956332ccc921363590dccd99d5707fb20b50966b

Metrics

File(s)

/home/runner/work/Kestrun/Kestrun/src/PowerShell/Kestrun/Public/Sse/Get-KrSseConnectedClientCount.ps1

#LineLine coverage
 1<#
 2    .SYNOPSIS
 3        Gets the number of connected SSE broadcast clients.
 4    .DESCRIPTION
 5        Returns the connected client count for the server-wide ISseBroadcaster service.
 6    .PARAMETER Server
 7        The Kestrun server instance. If not specified, the default server is used.
 8    .EXAMPLE
 9        Get-KrSseConnectedClientCount
 10#>
 11function Get-KrSseConnectedClientCount {
 12    [KestrunRuntimeApi('Everywhere')]
 13    [CmdletBinding()]
 14    param(
 15        [Parameter(ValueFromPipeline)]
 16        [Kestrun.Hosting.KestrunHost]$Server
 17    )
 18
 19    process {
 020        if (-not $Server) {
 021            $Server = Resolve-KestrunServer -Server $Server
 22        }
 23
 024        return $Server.GetSseConnectedClientCount()
 25    }
 26}

Methods/Properties

Get-KrSseConnectedClientCount()