-
Notifications
You must be signed in to change notification settings - Fork 311
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
Unable to create subscription using GraphQLWebSocketClient #432
Comments
@kpostekk Please see recently added test file for a working subscription example |
Gonna test it asap |
|
I also don't exclude bugs from my side. I think not including docs for WS isn't helpful tho. |
@kpostekk PR adding docs for web socket stuff is welcome! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tl;dr
The current implementation of
graphql-transport-ws
in this library has a bug where initial flag is not sent.Accroding to PR #330 I should be able to establish a WS connection with any GraphQL server that supports
graphql-transport-ws
.Unfortunately, there is no mention in docs how to do it using the
GraphQLWebSocketClient
class.Anyway, I have tried using one of my subscriptions from Mercurius server with following code.
Instead of continous communication, socket was immediately closed.
Implementing identical logic in
graphql-ws
was working as it shouldI think implementation of
graphql-transport-ws
in previously mentioned PR has lack of initial flag.The text was updated successfully, but these errors were encountered: