function isUserChatOpen
isUserChatOpen(userId: string): boolean

Checks whether userId is reading the chat on any of their sockets. The route passes it to notifyMentions, which skips those users: they saw the mention live, and their client chimes for it.

Parameters

userId: string

Return Type

boolean

Usage

import { isUserChatOpen } from "api/services/ws-service.ts";