Function RPCClient.disconnect
Sends disconnect signal to remote server and stops internal tasks.
void disconnect
();
Note
Do not call any functions on this client instance after disconnecting. This does not close the underlying stream. Recommended usage pattern:
client .disconnect();
client .connectionInfo .close();
destroy(client);