no events raised after setting up connection (question / help request) #212
-
I can create a connection and send queries over it, however I don't see/get any events firing as I'd expect (which I'd like, to feed into app state regarding connected status).
In the above code I get the Thanks for the great library. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The library is in If you want the client to connect as soon as you create it, use the |
Beta Was this translation helpful? Give feedback.
The library is in
lazy
mode by default; meaning, it connects on demand (connect on first subscribe and disconnect on last unsubscribe). For you to get those logs as is, you have to subscribe or execute a GQL operation with the client.If you want the client to connect as soon as you create it, use the
lazy: false
option.