function WSProvider
WSProvider(unnamed 0: WSProviderProps): React.JSX.Element

Provides WSContext, WSChatContext, WSPresenceContext, AvatarOverrideContext and WSEventsContext. It connects with the session's token, or anonymously, and reconnects with a backoff doubling up to 30 s. A new token (sign-in, sign-out, another account) clears the live state and reconnects. A new notification or chat message chimes, and the unread counts go in the tab title.

Parameters

Return Type

React.JSX.Element

Usage

import { WSProvider } from "src/contexts/ws/WSProvider.tsx";