Skip to content

How can I implement offline subscription function with grappling-sse? #90

Answered by enisdenjo
BrainEno asked this question in Q&A
Discussion options

You must be logged in to vote

You'd have to implement a notification queue that would have a delivered status set to true whenever the user is online and the subscription goes through.

For whenever the use missed the notification, you simply query all non-delivered notifications and display them to the user.

This is something outside of graphql-sse scope, since this library just deals with transport. You'd have to implement this queue system yourself. Am not aware if there's anything out there, you can Google around - or implement it yourself since it's not that complicated.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BrainEno
Comment options

Answer selected by BrainEno
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants