method SseService.prototype.peek
SseService.prototype.peek(name: string): SseChannel | undefined

Return the named channel if it already exists, without creating it.

Parameters

name: string

Return Type

SseChannel | undefined

Usage

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