interface ErrorMessage

Sent by the server to the socket whose message failed. With dumpId or commentId, WSProvider undoes that optimistic vote or like at once rather than after its 5 s timeout. With scope, the chatbox shows it, on the pending message nonce names or as a notice. Any other error is ignored.

Properties

type: "error"
optional
message: string

In English: the chatbox shows it untranslated.

optional
dumpId: string
optional
commentId: string
optional
action: "cast" | "remove"
optional
scope: "chat"
optional
nonce: string

Set only on the failure of a ChatSendMessage that had one.

Usage

import { type ErrorMessage } from "shared/ws.ts";