Skip to content

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.

K extends keyof ChatNotificationEventMap

ChatNotificationsClient

K

(payload) => void

void