© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
15 replies
7seas3c

supabase realtime INSERT and UPDATE not working?

Im using
supabase-js
supabase-js
library and I wanna listen to every events on every table

const socket = new RealtimeClient(process.env.REALTIME_URL, {
    params: {
        apikey: process.env.REALTIME_API_KEY
    }
})

socket.connect()

const PTListener = socket.channel('realtime:public:*')


// BUG only DELETE works
PTListener.on('INSERT', (change) => {
    console.log('INSERT on PTListener', change)
})
PTListener.on('UPDATE', (change) => {
    console.log('UPDATE on PTListener', change)
})
PTListener.on('DELETE', (change) => {
    console.log('DELETE on PTListener', change)
})
const socket = new RealtimeClient(process.env.REALTIME_URL, {
    params: {
        apikey: process.env.REALTIME_API_KEY
    }
})

socket.connect()

const PTListener = socket.channel('realtime:public:*')


// BUG only DELETE works
PTListener.on('INSERT', (change) => {
    console.log('INSERT on PTListener', change)
})
PTListener.on('UPDATE', (change) => {
    console.log('UPDATE on PTListener', change)
})
PTListener.on('DELETE', (change) => {
    console.log('DELETE on PTListener', change)
})


but only only trigger on
DELETE
DELETE
, but not on
INSERT
INSERT
or
UPDATE
UPDATE
.
Screenshot_from_2022-08-25_11-31-50.png
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Realtime not working
SupabaseSSupabase / help-and-questions
4mo ago
Realtime not working
SupabaseSSupabase / help-and-questions
4y ago
Supabase Realtime Broadcast Not Working from C# Backend
SupabaseSSupabase / help-and-questions
4mo ago
Realtime not working in supabase-js 2.54+
SupabaseSSupabase / help-and-questions
5mo ago