property WSChatContextValue.editChatMessage

Sends the edit if the socket is open, else drops it. It shows once the server broadcasts it, or fails as chatError.

Type

(
id: string,
body: string
) => void

Usage

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