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

Sends a text or binary frame.

Parameters

data: string | Uint8Array

The frame payload

Return Type

void

Usage

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