I'm trying to subscribe to realtime updates to a t...
# help
t
I'm trying to subscribe to realtime updates to a table that is not in the
public
schema. The table I'm trying to subscribe to is in a schema called
stripe
Here is how I set up the subscription:
Copy code
js
const subscription = supabase
        .from(`stripe.subscription`)
        .on("UPDATE", (payload) => {
          setUser({ ...user, ...payload.new });
        })
        .subscribe();
It doesn't appear to work. It looks like it prepends to the public schema. Any feedback or advice?
For instance, when I inspect the subscription topic I see the topic is defined as
realtime:public
g
You have to set up a supabase client with your stripe schema as an option.