interface ChatMessageMessage

Sent by the server to every signed-in socket, the sender's included, when a chat message is posted. WSProvider adds it to the live chat, counts it unread unless the user is reading the chat, and may chime.

Properties

type: "chat_message"
optional
nonce: string

The sender's ChatSendMessage nonce, by which its client swaps the pending copy for this one.

Usage

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