andylamax
12/24/2025, 8:22 AMneworldlt
12/29/2025, 12:21 AMval rpc = client.rpc(RpcEndpoints.MAIN)
rpc.webSocketSession.await()
rpc.awaitCompletion()andylamax
12/29/2025, 7:15 AMval rpc = client.rpc("/service)
And the use it normally. Say,
val users = rpc.withService<UsersService>()
After I have made a few rpc calls, I need to check if my client is still active/connected.
This is so that, I may recreate a new rpc connection if the first one is disconnected.
The solution you provided would require me to create another rpc client and check if that one is connected and that is not what I am currently looking for!