Replies: 2 comments 1 reply
-
|
Yes, you can emit an event to ask the clients to reconnect: trpc/examples/next-prisma-websockets-starter/src/server/prodServer.ts Lines 32 to 35 in 949f42b You can also reach into the underlying |
Beta Was this translation helpful? Give feedback.
-
|
I believe you misunderstood the question. The question is how to close/complete an active subscription. Perhaps Iv'e misunderstood the terminology? Since I asked this question I've come to the understanding that this perhaps could be achieved by calling the "complete" function on the subscriber created by the observable? I haven't tried this though. Another user recently asked a similar question and stated it didn't work for them. Is calling complete from server supported? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to close subscriptions from the server side? If so, how?
Beta Was this translation helpful? Give feedback.
All reactions