method ISseService.channel
ISseService.channel(name: string): SseChannel

Returns or creates a named channel.

Creating is the point: the first call for a name registers a channel that lives until the process stops. Use ISseService.peek to read a caller-supplied name without registering anything.

Parameters

name: string

Channel name

Return Type

The named channel

Usage

import { type ISseService } from "common/src/index.ts";