conscious-sapphire
conscious-sapphire•3y ago

Socket.io

Hello, I struggle to get LiveProvider works with socket.io. any chance you have a boilerplate that could help? Ably and Supabase code don't help that much. I am having a lot of GET request generated in console.. I am not sure I did it the right way. Would you please assist?
4 Replies
Omer
Omer•3y ago
Hey @lionnel8701 👋, Unfortunately, We don't have an example, but for socket.io you just have to implement the subscribe function. Can you share as much as you did with us? We will try to help
genetic-orange
genetic-orange•3y ago
I am still trying to figure out how subscribe function works,
Omer
Omer•3y ago
Hmm, maybe you can check out other integrations. Hasura, supabase, appwrite, etc. https://refine.dev/docs/api-reference/core/providers/live-provider/ https://refine.dev/docs/advanced-tutorials/real-time/
Live / Realtime | refine
refine lets you add Realtime support to your app via liveProvider prop for ``. It can be used to update and show data in Realtime throughout your app. refine remains agnostic in its API to allow different solutions(Ably, Socket.IO, Mercure, supabase, etc.) to be integrated.
genetic-orange
genetic-orange•3y ago
thanks.

Did you find this page helpful?