Unref() the websocket
Hello everyone,
What I desire is to use a websocket link but not have TRPC hold the process open indefinitely, preventing my Node.js script from finishing (as is default when you have a websocket connection open). If you merely unref() the underlying socket then the process quits before the query/mutation finishes.
The following is my working solution, but I'm wondering if there was a simpler/more elegant solution:
0 Replies