interface ChatError

Tells the user the server refused their chat edit or delete. WSProvider sets it as chatError, and ChatModal shows it for a few seconds.

Properties

id: number

Tells apart two errors with the same message.

message: string

Usage

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