jaacsen
jaacsen2w ago

multiple subscriptions in client side causing latency and failing to reload/redirect

jus the title
5 Replies
BeBoRE
BeBoRE2w ago
Please elaborate
jaacsen
jaacsen2w ago
I am using SSE, when I try to call more than subscriptions on the same page, the page stops working properly, can't redirect to pages, nor gets refreshed
BeBoRE
BeBoRE2w ago
The page becomes completely unresponsive due to the subscriptions?
jaacsen
jaacsen2w ago
yes i've been tryin to fix the subscriptions issue for a week now, i dont know why its not working for me i work with nextjs app router, setting websockets exactly like the example on github and it doesnt work for me. when i replace wsLink in my client provider with httpSubscriptionLink, the subscriptions effectively do show in console after i subscribe @BeBoRE @Alex / KATT 🐱
Alex / KATT 🐱
do not @ people i've put you on timeout we're helping for free and do not make money off trpc, if you want to hire help, feel free to reach out as i've said before, you probably don't want websockets as it's harder to setup than SSE we need to see code to understand this - there's also max concurrent requests in the browser that you might or might not be exceeding - this sentence is impossible to debug without more context
More Posts