Do databases created at app.supabase.io support realtime subscriptions? #1160
-
Hi, Do databases created at app.supabase.io support realtime subscriptions (https://github.com/supabase/realtime) or realtime subscriptions are only supported when the database is setup using the docker image mentioned in the repository README.md? Thank you in advance for your answer, Best, Paulo |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This works with databases created at app.supabase.io too. You can see example code in some of the example projects in this repo. The use of the https://github.com/supabase/supabase/blob/master/examples/nextjs-slack-clone/lib/Store.js - example project code |
Beta Was this translation helpful? Give feedback.
This works with databases created at app.supabase.io too. You can see example code in some of the example projects in this repo. The use of the
on()
andsubscribe()
methods is where you will see this happening. You can also read more on it in the documentation https://supabase.io/docs/reference/javascript/subscribehttps://github.com/supabase/supabase/blob/master/examples/nextjs-slack-clone/lib/Store.js - example project code