stevanfreeborn
stevanfreeborn17mo ago

Poll Data

I understand that when you call useQuery you automatically get the benefits of subscribing to changes in the data, but is there any means to pull on this data programmatically? I’m interested in building a collaborative editor, but I’m having a hard time translating how so might implement that with something like socket.io to convex.
2 Replies
Michal Srb
Michal Srb17mo ago
Hey @stevanfreeborn, you might find the watchQuery method helpful: https://docs.convex.dev/api/classes/react.ConvexReactClient#watchquery
stevanfreeborn
stevanfreebornOP17mo ago
Thanks for pointing me in a new direction! I was a bit stuck. 🙏

Did you find this page helpful?