Skip to content

Are clients notified when a subscription task exists? #1223

Closed Answered by SuperFluffy
SuperFluffy asked this question in Q&A
Discussion options

You must be logged in to vote

After looking through the git history I found this PR: #1034

So the solution is to return an Err("reason".into()) as the SubscriptionResult in the handler instead of explicitly closing the connection as was done before, bascially this:

                        SubscriptionCommand::Abort => {
                            tracing::debug!("abort command received; exiting eth_subscription");
                            break Err("abort command received".into());
                        }

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by SuperFluffy
Comment options

You must be logged in to vote
0 replies
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