method WebSocketLike.send
WebSocketLike.send(data: string | Uint8Array): void

Sends a text or binary frame.

Parameters

data: string | Uint8Array

The frame payload

Return Type

void

Usage

import { type WebSocketLike } from "runtime/src/index.ts";