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.

Constructor #

WebSocket is a class implementing the virtual class Protocol.

This is the main entry point to communicate with Websocket protocol. Pass an instance of this class to the constructor of the Kuzzle SDK to use this protocol to connect to the Kuzzle server.

Signature #

WebSocket(const std::string& host,);

WebSocket(const std::string& host, kuzzleio::options& options);

Arguments #

ArgumentTypeDescription
host
const std::string&
Kuzzle server hostname or IP
options
kuzzleio::options*
WebSocket protocol configuration

options #

OptionType
(default)
Description
port
int

(7512)
Kuzzle server port
ssl
bool

(false)
Use SSL to connect to Kuzzle server

Usage #

kuzzleio::WebSocket* ws = new kuzzleio::WebSocket("kuzzle");