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.

registerSub #

Attaches a notifications listener to an existing subscription.

Signature #

Copied to clipboard!
virtual void registerSub(
  const std::string& channel,
  const std::string& room_id,
  const std::string& filters,
  bool subscribe_to_self,
  NotificationListener* listener) = 0;

Arguments #

Argument Type Description
channel
const std::string&
Subscription channel identifier
room_id
const std::string&
Subscription room identifier
filters
const std::string&
Subscription filters
subscribe_to_self
bool
Subscribe to notifications fired by our own queries
listener
NotificationListener*
A pointer to the listener

listener #

A c++11 lambda which takes a const std::string argument. EventListener is defined as const std::function<void(const std::string)>.