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
Omer2y 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
other-emerald
other-emerald2y ago
I am still trying to figure out how subscribe function works,
Omer
Omer2y 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.
other-emerald
other-emerald2y ago
thanks.