Idea: Allow custom event types to be implmented or a standard event for polling #53
Ancient-Dragon
started this conversation in
Ideas
Replies: 1 comment 7 replies
-
graphql-sse already pings clients every 12 seconds. Maybe 12 seconds is too much for your server, I can add an option to customise the timeout - what do you think? |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The reason I'm asking about this idea is because we have introduced subscriptions and we have noticed that on our backend the subscription thread stays alive even after the user has closed the browser tab. So I was thinking would it be possible to allow users to add the ability to customise the handling of event types (e.g. if we wanted to implement a poll event then we could add a method to be called on recieving the event). Or if there could be a standard poll event type whereby if this event was recieved nothing would be triggered and it would just kind of be ignored. My assumption here is that the service doesn't know that the client has disconnected because of the unidirecitonal communication, so only when it tries to publish to the connection does it find out it's been closed.
Beta Was this translation helpful? Give feedback.
All reactions