Namespace: notifications

Session. notifications

Topic notifications feature.


Allows a client session to receive notifications about changes to selected topics.

Members


<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)

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

Type
Result.<TopicNotificationRegistration>