How does tRPC work?
I have a few quesstions regarding tRPC
How does tRPC achieve type-safety without code-gen?
Can tRPC work purely over websockets?
6 Replies
By using validators like Zod.
You can run everything over WebSockets.
Writing a tiny tRPC client | tRPC
Ever wondered how tRPC works? Maybe you want to start contributing to the project but you're frightened by the internals? The aim of this post is to familiarize you with the internals of tRPC by writing a minimal client that covers the big parts of how tRPC works.
HTTP RPC Specification | tRPC
Methods Type mapping
Thanks
why does it not use body?
afaik
GET
can have a body
Why are notifications opt-in?