NovuN
Novu4y ago
turtles

Novu Socket info

Hey I was wondering if there was more info on what kind of events we can respond to when using the react useSocket() hook

I can see unseen_count_changed from the docs example. Are there more events?

Here's the interface I was looking at
interface ISocket {
    on: (eventName: string, callback: (data: any) => void) => void;
    off: (eventName: string) => void;
}


Im trying to display a toast whenever a user gets a specific type of notification. (Loving the project btw)
Was this page helpful?