useChatNotificationEvent
useChatNotificationEvent<
K>(client,event,handler):void
Defined in: react/use-chat-notifications.ts:80
Subscribes to one event type for as long as the component is mounted. handler doesn’t need a stable identity — the latest one is always used.
Type Parameters
Section titled “Type Parameters”K extends keyof ChatNotificationEventMap
Parameters
Section titled “Parameters”client
Section titled “client”K
handler
Section titled “handler”(payload) => void
Returns
Section titled “Returns”void