DevPanda
DevPanda4w ago

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
DevPanda
DevPandaOP4w ago
it done. some one has help me in DM
BeBoRE
BeBoRE4w ago
What do you mean by this?
DevPanda
DevPandaOP4w ago
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
BeBoRE
BeBoRE4w ago
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.
alessandroooo
alessandroooo4w ago
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?
DevPanda
DevPandaOP4w ago
both, for my webview i use it already. i planned to use it for client -> server communication to reduce the load from the events
alessandroooo
alessandroooo4w ago
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
DevPanda
DevPandaOP4w ago
yes that is no problem
alessandroooo
alessandroooo4w ago
then whats the issue
DevPanda
DevPandaOP4w ago
no issue
I wanted to know if I can use trpc in any kind of NOdeJS application
alessandroooo
alessandroooo4w ago
aah lol sorry
DevPanda
DevPandaOP4w ago
xD
alessandroooo
alessandroooo4w ago
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?
DevPanda
DevPandaOP4w ago
what do you mean exactly?
alessandroooo
alessandroooo4w ago
i remember long time agoo you linked me majestic or majesty something like that
DevPanda
DevPandaOP4w ago
oh yeah, i have look in chat history. i mean you have anywhere looking for a server or so

Did you find this page helpful?