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 to an event.

Signature #

virtual int listenerCount(kuzzleio::Event event) = 0;

Arguments #

ArgumentTypeDescription
event
kuzzleio::Event
Enum representing the event to emit

event #

One of the following event:

EVENT_CONNECTED,
EVENT_DISCARDED,
EVENT_DISCONNECTED,
EVENT_LOGIN_ATTEMPT,
EVENT_NETWORK_ERROR,
EVENT_OFFLINE_QUEUE_POP,
EVENT_OFFLINE_QUEUE_PUSH,
EVENT_QUERY_ERROR,
EVENT_RECONNECTED,
EVENT_JWT_EXPIRED,
EVENT_ERROR

Return #

The number of listeners attached to the specified event.