-
Hello, I try to write some tests using graphql-ws Client you provide. I based on the README examples and came up with the following:
Any ideas? Or maybe I should use some other testing library? What do you recommend? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
As in the subscribe was successful but the subscription is not completed yet? In that case, I recommend using On the other hand, if you mean that the subscription really completed and no further events will be emitted - simply use the sink as showcased in the "Client usage with Promise" recipe and wait for the Promise to resolve.
The client is probably retrying. Consider setting the Additionally, I recommend checking my test suites in |
Beta Was this translation helpful? Give feedback.
As in the subscribe was successful but the subscription is not completed yet? In that case, I recommend using
ServerOptions.onOperation
.On the other hand, if you mean that the subscription really completed and no further events will be emitted - simply use the sink as showcased in the "Client usage with Promise" recipe and wait for the Promise to resolve.
The client is probably retrying. Consider setting the
ClientOptions.retryAttempts
to zer…