method SseService.prototype.channelCount
SseService.prototype.channelCount(): number

Number of channels the registry currently holds.

Rises for the life of a running application, since nothing reclaims a channel; SseService.closeAll discards them all at shutdown, which is the only thing that lowers it.

Return Type

number

Usage

import { SseService } from "sse-plugin/src/index.ts";