function useWS
useWS(): WSContextValue

Returns the connection's status, the live votes, likes, new and deleted dumps and playlists, the unread count, and the functions that vote and like. A component using it re-renders on every change to any of them.

Return Type

Usage

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