function encodeSseComplete
encodeSseComplete(): Uint8Array

Encode a complete SSE event with the mandatory empty data: field.

Native EventSource never fires the listener without a data: field, so the empty value is required by the protocol.

Return Type

The encoded complete event bytes

Usage

import { encodeSseComplete } from "graphql-plugin/src/index.ts";