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

Did you find this page helpful?