Topic notifications feature.
Allows a client session to receive notifications about changes to selected topics.
Members
-
<static, readonly> TopicNotificationType
-
The type of topic notification that has been received.
Properties:
Name Type Default Description ADDED
The topic was added. SELECTED
The topic existed at the time of the selector registration. REMOVED
The topic was removed. DESELECTED
The topic was deselected.
Methods
-
addListener(listener) → {Result.<TopicNotificationRegistration>}
-
Register a TopicNotificationListener to receive topic notifications.
Parameters:
Name Type Description listener
TopicNotificationListener the listener to receive topic notifications Returns:
A Result.<TopicNotificationRegistration> for this operation