You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider abstracting the protocol implementation such that it can be used without cynic?
Release 0.13, and graphql-ws-client
Finish example
There's quite a few moving parts to this, but it's mostly extending what's already there. Happy to help guide any newcomers through the implementation if they want to take this.
The text was updated successfully, but these errors were encountered:
#### Why are we making this change?
I want to add support for subscriptions to cynic.
#### What effects does this change have?
Adds support for building subscription operations to cynic:
- Added a new SubscriptionRoot marker trait, equivalent to the existing
QueryRoot & MutationRoot.
- Added a SubscriptionBuilder, equivalent to QueryBuilder & MutationBuilder.
- Added a new StreamingOperation, similar to Operation but for operations that
stream responses (i.e. subscriptions)
This is mostly untested currently as I haven't yet added support for any
streaming transports. That will be coming soon.
Part of #148
Have ended up putting put most of the graphql-ws code into a separate crate so it can be used with other graphql libraries, and be updated independantly from cynic: https://github.com/obmarg/graphql-ws-client
Cynic doesn't currently support subscriptions.
This issue is to track adding support for them.
graphql-ws
protocolrust-websocket-lite(see Add support for other websocket libraries. graphql-ws-client#11)ws-stream-wasm(see Add support for other websocket libraries. graphql-ws-client#11)There's quite a few moving parts to this, but it's mostly extending what's already there. Happy to help guide any newcomers through the implementation if they want to take this.
The text was updated successfully, but these errors were encountered: