Subscribe to data in solid-start

I'm using Supabase with solid-start. I'm pulling data from the postgres db using createServerData$ function. I'm hoping to have this page subscribe to the data and update if another user inserts data to the postgres table. Are there any patterns to handle this using solid-start? I'm not sure how to subscribe in an SSR setting.
4 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Razboy20
Razboy203y ago
Only if you have a singular server instance Otherwise, I recommend using ably or some other service to handle subscriptions In the server functions you can use Ablys http functions, and clientside realtime libraries
Pridgey
PridgeyOP3y ago
oh interesting. I'll look into that. Thank you very much for the insight
Razboy20
Razboy203y ago
Np-also if you find a better alternative, lmk

Did you find this page helpful?