property WSChatContextValue.setChatOpen

Spares the user a notification for a mention they read live. It tells the server whether the chat is open in a visible tab; while it is, the server sends no notification for a mention, and this client doesn't count the message unread.

Type

(open: boolean) => void

Usage

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