Kuzzle class setters

autoReplay

Set the value for the auto-replay flag which allow to play queued request after a successfull auto-reconnection.

Signature

Copied to clipboard!
Kuzzle* autoReplay(bool);

volatiles

Set the value of the global volatile data.
Value must be a JSON string representing a JSON object. (eg: {"username": "Aschen"})

Signature

Copied to clipboard!
Kuzzle* volatiles(const std::string&);

Usage

Copied to clipboard!
kuzzleio::Kuzzle *kuzzle = new kuzzleio::Kuzzle(
  new kuzzleio::WebSocket("kuzzle"));
kuzzle->autoReplay(true);
kuzzle->volatiles(R"({ username: "Aschen" })");