Utility Methods API for PubNub Rust SDK
The methods on this page are utility methods that don't fit into other categories.
Disconnect
Call the disconnect()
method to force the SDK to stop all requests to PubNub server when there are active subscribe channels.
Method(s)
To disconnect()
the data transmission you can use the following method(s) in Kotlin SDK.
client.disconnect();
This method doesn't take any arguments.
Basic Usage
client.disconnect();
Reconnect
Call the reconnect()
method to force the SDK to try and reach out PubNub.
Method(s)
To reconnect()
the data you can use the following method(s) in Kotlin SDK.
client.reconnect();
This method doesn't take any arguments.
Basic Usage
client.reconnect();