disconnect

Closes the current connection to Kuzzle.
The SDK is now in offline state.
A call to disconnect() will not trigger a DISCONNECTED event. This event is only triggered on unexpected disconnection.

Signature

Copied to clipboard!
void disconnect() noexcept;

Usage

Copied to clipboard!
kuzzle->disconnect();

std::cout << "Successfully disconnected" << std::endl;