How to get Graphql Subscriptions working. A solution to start with it #1879
chregu
announced in
How-to Guides
Replies: 2 comments 1 reply
-
When I try the solution above, I get the following error:
I use vendure 1.9.1. How could I solve this issue? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Update for vendure v2 beta:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Getting GraphQL subscriptions work in vendure (1.9.x) is not totally straightforward. Here's how I got the basics running within a plugin. Then you can access it via
/subscription-api
Authentication doesn't really work (see the comments to maybe make it work)
yarn add subscriptions-transport-ws
plugin.ts
subscriptions.graphql
resolver.ts
Beta Was this translation helpful? Give feedback.
All reactions