Use polling as a fallback #217
Answered
by
enisdenjo
quant-daddy
asked this question in
Q&A
-
Sometimes websocket connection fails. Is there a way to use polling as a fallback on the browser? Also, is there a way detect if the websocket connection failed? |
Beta Was this translation helpful? Give feedback.
Answered by
enisdenjo
Jul 23, 2021
Replies: 1 comment
-
This is a WebSocket library, so it implements just that. Do note that WebSockets are widely supported. Alternatively, you can try All errors and closures are reported by |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
enisdenjo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a WebSocket library, so it implements just that. Do note that WebSockets are widely supported. Alternatively, you can try
socket-io-graphql-client
which uses Socket.io instead.All errors and closures are reported by
EventError
andEventClosed
events respectively.