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.

connect #

Connects to Kuzzle using the Protocol argument provided in the constructor options. Subsequent call have no effect if the SDK is already connected.

Signature #

Copied to clipboard!
void connect();

Exceptions #

Throws a kuzzleio::KuzzleException if there is an error. See how to handle error.

Usage #

Copied to clipboard!
try {
  kuzzle->connect();
  std::cout << "Successfully connected" << std::endl;
} catch (kuzzleio::KuzzleException& e) {
  std::cerr << e.what() << std::endl;
}