-
Notifications
You must be signed in to change notification settings - Fork 632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add notifiers nip #1796
base: master
Are you sure you want to change the base?
Add notifiers nip #1796
Conversation
Very cool! Shouldn't |
Oh.. sorry my bad. I didn't noticed that it is all encrypted. |
Cool!
|
Yes, that's the idea. I don't see a downside to using deletes, and the replaceable could also remove its subscriptions. But I also don't mind adding a new kind necessarily. I'll wait to see what others think.
I think my approach is equivalent. The client would just re-publish the 32830 every minute, updating the pause_until timestamp. When about to go offline, it could also update the event, removing pause_until to resume notifications, just like in the heartbeat example. But I also don't feel strongly about splitting this into a separate event. |
@water783 some of my motivation for doing everything in one event is that the pattern of a longstanding, frequently-updated replaceable event feels a lot like re-inventing DVMs, but for subscriptions rather than transactions. It doesn't necessarily have any bearing on this particular use case, but it would be an interesting pattern to experiment with to create a new kind of DVM standard. |
I see, makes sense. |
This is a generalization/update of https://github.com/0xchat-app/0xchat-core/blob/main/doc/nofitications.md with the following differences: