Skip to content
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

Implement SubscriptionClient for HttpClient #563

Merged
merged 1 commit into from
Nov 17, 2021

Conversation

dvdplm
Copy link
Contributor

@dvdplm dvdplm commented Nov 15, 2021

Closes #448

This PR adds an implementation for SubscriptionClient to the HttpClient struct, which makes it possible for http clients to use macro-generated RPC servers. If an http client tries to set up a subscription it will fail with a HttpNotImplemented error.

Closes #448

This PR adds an implementation for `SubscriptionClient` to the `HttpClient` struct, which makes it possible for http clients to use macro-generated RPC servers. If an http client tries to set up a subscription it will fail with a `HttpNotImplemented` error.
Copy link
Member

@niklasad1 niklasad1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer:

ignore any subscriptions for http clients and only implement the Client trait for them

but I'm not sure if that's possible so let's go with this for now

@dvdplm
Copy link
Contributor Author

dvdplm commented Nov 16, 2021

but I'm not sure if that's possible so let's go with this for now

Yeah me neither, I don't know how that would work tbf.

@dvdplm dvdplm merged commit 6af6db2 into master Nov 17, 2021
@dvdplm dvdplm deleted the dp-http-clients-implement-subscription-client branch November 17, 2021 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[proc macros]: client implementations with subscriptions doesn't work for HTTP client
3 participants