method ISseConnection.send
ISseConnection.send(msg: SseMessage): void

Enqueues an encoded SSE frame for the connected client.

Parameters

The message to encode and send

Return Type

void

Throws

Error

If the connection is closed

Usage

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