realtime-swift
realtime-swift copied to clipboard
Channel subscriptions aren't working
Bug report
When using .onMessage
, I'm able to observe changes, but not using .on(.all)
.
Describe the bug
Here's an example:
client.connect()
socket = client.channel(.column("event_id", value: String(id), table: "messages", schema: "public"))
socket?.on(.all, callback: { msg in
print(msg.event, msg.payload) // Won't print
})
socket?.onMessage { msg in
print(msg.event, msg.payload) // Will print
return msg
}
socket?.subscribe()
Yup I saw the same issue. Works fine for .on(.delete) or .on(.update), but .on(.all) doesn't work
Did either of you find a fix or a way to circumvent the issue? I'm getting the same issue
I believe this might be related to Row Level Security
I haven't worked on this project in a while (was just hacking around to try supabase out), but iirc I didn't find any fix for this issue. This and other issues drove me back to firebase lol
has anyone figured this out?