t
tRPC
t
tRPC
Single context for WebSocket and HTTP
Original message was deleted
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,111
Members
View on Discord
B
BeBoRE
•
6/20/24, 1:09 PM
What
’s the question
? You need to have one router that accepts both contexts
, or do you want to keep the two routers separate
?
B
BeBoRE
•
6/20/24, 1:11 PM
If you want authentication to work on WS you
’d have to go somewhere more relevant to Zutopia
B
BeBoRE
•
6/20/24, 2:43 PM
Is there a problem with saying Context
= ExpressContext
| WSContext
?
B
BeBoRE
•
6/20/24, 2:46 PM
Here is how I have it
:
https://github.com/BeBoRE/ei-noah-bot/blob/master/packages/trpc/src/trpc.ts
GitHub
ei-noah-bot/packages/trpc/src/trpc.ts at master · BeBoRE/ei-noah-bot
De offici
ële Discord Bot voor de Sweaty GG Chat
. Contribute to BeBoRE
/ei
-noah
-bot development by creating an account on GitHub
.