How would y'all get realtime updates with t3 stack? Is there an accepted solution?
or is this the time to interface with postgres w/o prisma?
28 Replies
Updates?
You mean like websocket stuff? Or firebase type ?
firebase style, i think they use sockets under teh hood tho
The only example with websockets and NextJS I know is this https://github.com/trpc/examples-next-prisma-websockets-starter
GitHub
GitHub - trpc/examples-next-prisma-websockets-starter: mirror of ht...
mirror of https://github.com/trpc/trpc/tree/main/examples/next-prisma-starter-websockets - GitHub - trpc/examples-next-prisma-websockets-starter: mirror of https://github.com/trpc/trpc/tree/main/ex...
But you won't be able to deploy on Vercel cause you are rewriting the server
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I don't think polling would work for me
My app is a real time data delivery app, i get data from 30+ sources and surface it realtime to many users browsers
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
but people usually complain that t3 doesn't work well with webshots
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
??
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
what do you mean by serverless?
isnt trpc serverless?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
yes
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
so basiclly your refering to trpc server side?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
so basically your saying no need to look for websockets when using t3 just use the subscription ?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
i havent used webscokets on t3 yet
but i will start looking at soon when i start building payment and chat side of things i know i will be stressed
react-query-polling wont work for payment
i dont know if it will work for chat
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
? have you used it before?
why and what will you use?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
i am using different type of payment flutterwave / Paystack
the sdk are just basically api wrappers so it usually have so many typescript red lines
will this work on t3 ?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
ok no problem thank you
i will just have to go the sdk route
i just hate working with sdk most are just api wrappers with little typescript support
whoa y'all went in on this
😅