-
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
Question: Disconnect ws connection from server side #1448
Comments
As a background, software that proxying subscriptions (for e.g. Subway), proxy silently stop sending responses to clients when upstream ws connection is disconnected. To avoid such situation, what I came up with are
|
Hey @shunsukew
There is no dedicated API in jsonrpsee for the server-side the close down connections but it's possible to use to the low-level API with rpc middleware (which is a bit complicated to use) There is a similar issue regarding this #1427 When talking about subscriptions specifically I just want clarify that a few options exist to inform the client without closing the connection:
|
Hello, Thank you for the information!
I was looking for a way to disconnect after accepting.
In our usecase, just proxying standard subscribe calls (e.g. Thank you for the sharing low level apis! I think this is the only way to disconnect after accepting |
Is it possible to disconnect ws connection from server side by using jsonrpsee api?
What I'm thinking of is disconnect ws connection from server side (not from client side) under specific situations.
The text was updated successfully, but these errors were encountered: