PreskUOriginal post
Web Developer
I am trying to connect to realtime database updates but don't seem to receive any updates. Documentation is pretty bad and i am stuck. Can anyone help? Here is what i am trying with, maybe i am stupid:
useEffect(() => {
loadElements();
if (!projectData) return;
let subscription;
const setupRealtime = async () => {
const subscription = await realtime.subscribe(Channel.tablesdb(), response => {
if (response.events.includes('databases.*.elements.*.update')) {
console.log(response.payload);
}
});
}
setupRealtime();
}, [projectData]);
Summary
User facing issue with connecting to real-time updates. Support is unsure of the cause but will escalate the problem to engineering for further investigation and resolution.