Realtime issues

I'm having issues with Realtime, EU West. This is my code:

supabase.channel('messages')
.on('postgres_changes', { event: '*', schema: '*' },
async (payload: any) => {
    console.log(payload)
    }
}).subscribe();


To me this looks like it should work? But nothing happens when I insert into the table. The table has realtime activated and replication is also enabled, so what could be wrong?
Was this page helpful?