registerSub #
Attaches a notifications listener to an existing subscription.
Signature #
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)>
.
Edit this page on Github (opens new window)