-
Notifications
You must be signed in to change notification settings - Fork 172
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
Is there a way to close the subscription from the server? #1427
Comments
Hey @yaziciahmet I don't understand whether you want to close the just subscription or the entire connection.
|
Hey @niklasad1 I believe what I want is the ability to close the connection. It looks quite complicated to do. Is it planned anytime soon to add some sort of easier access to underlying connection, or maybe just a close functionality can be propagated down somehwo? |
I prefer not add such thing into the subscription itself but perhaps we could add some builtin middleware to simplify it. |
Maybe return a tuple from |
Hey sorry, for late response but I had a look at this and it's currently possible to add such as thing using extensions in the RPC handler by using the low-level server API example here |
My confusion is really simple. I have a usecase where it is best to close the subscription or the connection from the server-side. Is this achievable, if so how?
The text was updated successfully, but these errors were encountered: