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

Sends a frame to the peer. A string is sent as a text frame, a Uint8Array as a binary frame.

Parameters

data: string | Uint8Array

The frame payload

Return Type

void

Usage

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