property WSChatContextValue.chatMessages

Shows chat messages as they arrive. It holds the ones received this session, at most 200, which ChatModal merges with the history it fetches. A reconnect empties it while the chat is closed, since ChatModal fetches everything again on open.

Type

Usage

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