Hello, I have a question about the service client: How should it be closed when I have a long-running query? Is it intended that I end the WebSocket session with cancel() or should I close the Ktor client with close()?
a
Alexander Sysoev
07/11/2025, 3:56 PM
You can do this but better close RpcClient first and for termination
d
Dirk
07/14/2025, 10:18 AM
Just for confirmation: Since variants 1) and 2) are not available, you're referring to the Close method from HttpClient (Ktor), right?