use cases
Hey, I only recently got to know trpc in connection with create-t3-app.
Now I have the question, can I use it everywhere or is it only possible in connection with web frameworks?
Would be very nice if you could enlighten me a bit 🙂
16 Replies
it done. some one has help me in DM
What do you mean by this?
I wanted to know if I can use trpc in any kind of NOdeJS application. Background: I am the GTA multiplayer scene user away and program on alt:V systems
IMO tRPC is best used in a context where one container needs to communicate to another container where the input cannot be fully trusted. So yes this could be client -> server communication, but I’ve also seen it used in Electron applications where the render thread communicates with the main thread.
you need to use it on altv?
For example, you only want to use altv as frontend, and trpc backend? Did i understand it correctly?
both, for my webview i use it already. i planned to use it for client -> server communication to reduce the load from the events
if i understood correctly (there is a lil bit of language barrier), you need to put the backend with trpc in the same folder as the altv server files and basically import trpc routes from there
yes that is no problem
then whats the issue
no issue
I wanted to know if I can use trpc in any kind of NOdeJS application
aah lol sorry
xD
im using it on vanilla nodejs btw yeah so altv has no issues with it i guess
you can even use prisma on altv now
are you still on that same server or is it another project?
what do you mean exactly?
i remember long time agoo you linked me majestic
or majesty
something like that
oh yeah, i have look in chat history. i mean you have anywhere looking for a server or so