function useWSChat
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.

Return Type

Usage

import { useWSChat } from "src/hooks/ws/useWS.ts";