hey people. struggling to get supabase realtime wo...
# help
e
hey people. struggling to get supabase realtime working. things i've tried: - log out all events. for example: db.from('*').on('*', console.log).subscribe() - enabled supabase_realtime on all events (INSERT, DELETE, SELECT, UPDATE) for the specific table. In this case the Project table anybody have any other suggestions to try trouble realtime?
n
Hello @ekko! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
s
Hey ekko!
Copy code
js
await supabase
  .from('profiles') // Example table
  .on('*', (payload) => {
      console.log(payload.new)
   })
   .subscribe();
The code example you wrote looks different than the correct pattern above. Could you double check to see if you wrote it like in documentation: https://supabase.com/docs/reference/javascript/subscribe