You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 12, 2019. It is now read-only.
As per the demo https://react-apollo-todo.demo.hasura.app it seems to make use of continuous 'polling' than 'WebSocket'. If so, what is the status of this app and what are the missing items that we need to consider before adopting it to other app?
The text was updated successfully, but these errors were encountered:
The “polling” you’re seeing seems to be the mutation being made at regular intervals to update the current user’s “last online” time, which is using the HTTP transport mechanism. I’m not totally sure why it does that—there’s no reason it couldn’t be using the WebSocket mechanism for everything. That said, it would still have to send those mutations at regular intervals, since it’s pushing data from the client to the server, not polling the server for data. This application doesn’t do any polling to get new data from the server.
If you want to write your own application using Hasura, you can certainly use a WebSocket connection for all your queries if you want, and Hasura will push data to your client via the WebSocket for any subscription queries you make.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
As per the demo https://react-apollo-todo.demo.hasura.app it seems to make use of continuous 'polling' than 'WebSocket'. If so, what is the status of this app and what are the missing items that we need to consider before adopting it to other app?
The text was updated successfully, but these errors were encountered: