aspizu
aspizu5mo 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
BeBoRE5mo 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
aspizu5mo ago
Thanks
aspizu
aspizu5mo ago
why does it not use body?
No description
aspizu
aspizu5mo ago
afaik GET can have a body Why are notifications opt-in?