Sveltekit not receiving real-time data
Hello devs , i was trying to add real time events in my sveltekit app and with the release of prisma pulse and prisma postgreSQL so i added these features to my app but i had problem with prisma pulse , when i create a new DB i receive events when a change happens only in a short period of time and it stops working and i'm not having any error , in my pluse dashboard it says Replication slot status
Unavailable idk if it means something , and this is my code , it will be nice of you if you take a look maybe i was doing things not in the right way
3 Replies
Hi @adam boukhris
Can you try to re-enable the replication slot? Without the replication slot available, Prisma Pulse cannot stream changes from your DB.
what do you mean by re-enable the replication
i didnt find how in the settings , also when i created a new project it worked for a short period then stopped , even with
Replication slot status Unavailable
I made some researchs and i found that i have to write sql for this , but i'm using prisma DB so i don't have this access