T
tRPC

❓-help

Multiple Routers with Websockets

Iitsnotyalc1/22/2024
Hi. I am looking to create two routers with either the same websocket connection or two unique websocket connections. (Or another solution I haven't thought of) Essentially, I have an adminRouter (Admin App procedures) and a clientRouter (Client App procedures). I'd rather avoid merging the two because I don't want to expose admin procedures to client apps (despite it being protected well with permissions). How can I accomplish what I am looking to accomplish. I'm open to other solutions as well! Thanks!

Looking for more? Join the community!