Class: TopicNotificationRegistration

TopicNotificationRegistration

new TopicNotificationRegistration()

The TopicNotificationRegistration represents the registration state of the associated listener on the server.

The TopicNotificationRegistration provides operations to control which topic paths the listener will receive notifications for. It can also close the listener and remove it from the server.

Methods

close()

Request that the listener is unregistered from the server.

deselect(topicSelector) → {Result.<undefined>}

Request to stop receiving notifications for all topics matched by the given selector.

Parameters:
Name Type Description
topicSelector String | TopicSelector

the selector to register

Returns:

A Result.<undefined> for this operation

Type
Result.<undefined>

select(topicSelector) → {Result.<undefined>}

Request to receive notifications for all topics matched by the provided topic selector.

Parameters:
Name Type Description
topicSelector String | TopicSelector

the selector to register

Returns:

A Result.<undefined> for this operation

Type
Result.<undefined>