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.

listenerCount #

Returns the number of listeners attached on an event.

Signature #

Copied to clipboard!
int listenerCount(kuzzleio::Event event);

Arguments #

Argument Type Description
event
kuzzleio::Event
An enum representing the listener event

event #

One of the following event:

Copied to clipboard!
CONNECTED
DISCARDED
DISCONNECTED
LOGIN_ATTEMPT
NETWORK_ERROR
OFFLINE_QUEUE_POP
OFFLINE_QUEUE_PUSH
QUERY_ERROR
RECONNECTED
JWT_EXPIRED
ERROR

Return #

The number of listeners attached on the specified event.