SDK
SDK C++ v1.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

This SDK has been deprecated because of stability issues. It is not advised to use it in a production environment.

getState #

Gets the current connection state.

Signature #

Copied to clipboard!
int getState();

Return #

The current connection state, values can be from the KuzzleState enum:

Copied to clipboard!
KUZZLE_STATE_CONNECTING,
KUZZLE_STATE_DISCONNECTED,
KUZZLE_STATE_CONNECTED,
KUZZLE_STATE_INITIALIZING,
KUZZLE_STATE_READY,
KUZZLE_STATE_LOGGUED_OUT,
KUZZLE_STATE_ERROR,
KUZZLE_STATE_OFFLINE