property WSChatContextValue.sendChatMessage

Trims body and sends it as a pending message. Ignores a blank body.

Type

(
body: string,
replyTo?: ChatReplyTarget
) => void

Usage

import { type WSChatContextValue } from "src/contexts/ws/WSContext.ts";