hey <@!764524500162445402> do you have any experi...
# javascript
l
hey @User do you have any experience in working with the standalone realtime library? Im having an issue where no data comes through the sockets unless its listening to all ("*") database changes
g
Do you mean you are using realtime.js directly rather than thru supabase.js? If at all possible it is better to use supabase.js as it syncs tokens and stuff. But realtime.js should also work fine just a different syntax. https://github.com/supabase/realtime-js#readme
l
Yeah that library. we use the core in our desktop and web app and that works perfectly
is there any thoughts as to why the realtime one might not work? From our standpoint we've done all the duplication and made the tables publicly assessible (which it works in the core library)
g
Have an example of your call?
l
yeah sure
Copy code
realtime.channel(.table("Media:id=eq.\("1")&spaceId=eq.\(workspaceId)&archived=eq.\(false)"))
i have my ios project open atm but here's an example call we'd make to set up the listener which wouldnt return data + socket would close
but it would return all data if we'd listen to '*'
g
Hard to parse what you are doing there... 'realtime:public:users' is format for all table, 'realtime:public:users:id=eq.1' is format for table with eq statement. I do not know if realtime requires 'realtime:public' or not as I use the supabase.js which does not... BUT you can only have one .eq statement...I'm pretty sure.