N
Novu3y 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;
}
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)
5 Replies
turtles
turtlesOP3y ago
bump
empe
empe3y ago
@Support @Engineering Could any of you have a look here?
george.d
george.d3y ago
Hey @turtles apologies for the late response from what i see at the moment there is unseen_count_changed, unread_count_changed.
george.d
george.d3y ago
Looks like the docs are missing it, do you mind opening issue about it? https://github.com/novuhq/novu/issues
GitHub
Issues · novuhq/novu
The Open-Source Notifications Platform. Add a working notification center to your app in minutes. 🚀 - Issues · novuhq/novu
turtles
turtlesOP3y ago
GitHub
Docs: Missing event names useSocket can respond to · Issue #2127 · ...
🔖 Feature description Update the docs or interface socket.on() can respond to interface ISocket { on: (eventName: string, callback: (data: any) => void) => void; off: (eventName: stri...
Want results from more Discord servers?
Add your server