Table of Contents

Public identifier Developer

In the examples are usually referred as dev_id. Used only when connecting to SaaS version of CppComet.

Secret developer key

Secret Developer key, it is composed of 64 characters and is used for authentication to the comet server. No it does not tell anyone. In the examples, commonly referred to as dev_key.

If you use https://github.com/CppComet/comet-server, it is specified in the settings in the comet.ini file, if you use SaaS version of CppComet it is issued when you add a new service in your account.

Possible problems after installation

Pay attention to what values of the port parameter are specified in the sections [ws] and [cometql] on these ports the comet server will wait for incoming connections.

In the comet.ini example in the repository, the port parameter for connections from JavaScrip api is set to 8087 This means that you need to connect like this:

cometApi.start({user_id:1, user_key:"userHash", node:"example.ru:8087"})

The port parameter for connections from CometQL is set to 3300 This means that you need to connect like this:

$link = mysqli_connect("example.ru", "root", "", "CometQL_v1", 3300);