aspizu
aspizu7mo ago

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
BeBoRE
BeBoRE7mo ago
By using validators like Zod. You can run everything over WebSockets.
Alex / KATT 🐱
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.
aspizu
aspizuOP7mo ago
Thanks
aspizu
aspizuOP7mo ago
why does it not use body?
No description
aspizu
aspizuOP7mo ago
afaik GET can have a body Why are notifications opt-in?