Hi there What is the best practice when dealing w...
# kotlinx-rpc
a
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
Hi there! • It is an abstraction over WS, so rules/practices are same • No built-in reconnection is provided for now
There were some examples of reconnection in gh issues and different threads here in the channel
a
Thanks @Alexander Sysoev I have searched for examples on reconnection to no avail. Can you help me with the link to those examples please?
a
a
thank you so much. Let me go through it