NicoVogel
NicoVogel
TTCTheo's Typesafe Cult
Created by OtterSwims996 on 1/17/2024 in #questions
Unable to set up a client side subscription to a trpc route that supports websockets
well... I fixed the issue with the app router after reading trough here: https://github.com/trpc/trpc/issues/3297 TLDR: I did not see that there was already a terminating link before registering the wsLink. upside: now there are two minimal projects for others to see how to get it working
13 replies
TTCTheo's Typesafe Cult
Created by OtterSwims996 on 1/17/2024 in #questions
Unable to set up a client side subscription to a trpc route that supports websockets
it was basically jokingly easy getting it to work with the page router -> https://github.com/NicoVogel/t3-minimal-websocket-page-router So, my issue is somewhere with the experimental app router
13 replies
TTCTheo's Typesafe Cult
Created by OtterSwims996 on 1/17/2024 in #questions
Unable to set up a client side subscription to a trpc route that supports websockets
Even though I have looked at your code forever, I can't seem to figure out why it does not work on my end (getting the same error as you described initially). I created a small repo that only contains the websocket code that does not work. https://github.com/NicoVogel/t3-websocket-minimal After a good break, I will go over your examples again, but some help would be appriciated.
13 replies