Hi there
What is the best practice when dealing with a KtorRpcClient?
• Create 1 and use it in the entirety of the application
• Create a client when you need to create a certain number of operations then close it
Followup question.
• In the occasion that the server/client has disconnected. What is the best way to dynamically reestablish the connection on the same KtorRpcClient?
a
Alexander Sysoev
09/10/2025, 4:43 PM
Hi there!
• It is an abstraction over WS, so rules/practices are same
• No built-in reconnection is provided for now
Alexander Sysoev
09/10/2025, 4:44 PM
There were some examples of reconnection in gh issues and different threads here in the channel
a
andylamax
09/10/2025, 4:47 PM
Thanks @Alexander Sysoev I have searched for examples on reconnection to no avail. Can you help me with the link to those examples please?