useWSChat(): WSChatContextValue
Returns the chat's messages, typing and read state. A component using it re-renders with every message and typing change, so a component that needs only the unread count still pays for them.
useWSChat(): WSChatContextValue
Returns the chat's messages, typing and read state. A component using it re-renders with every message and typing change, so a component that needs only the unread count still pays for them.
import { useWSChat } from "src/hooks/ws/useWS.ts";