TopicSubscription

TopicSubscription

class for methods and properties of Topic Subscription


Constructor

# new TopicSubscription()

Methods

# (async) addMessageReceivedListener(messageReceivedListener)

Parameters:
Name Type Description
messageReceivedListener MessageReceivedListener

class for registering MessageReceivedListener callback

# getTopic() → {Topic}

gets the topic of subscription

Returns:

the Topic instance

Type
Topic

# (async) removeMessageReceivedListener(messageReceivedListener)

Parameters:
Name Type Description
messageReceivedListener MessageReceivedListener

class for registering MessageReceivedListener callback

# (async) unSubscribe()

method to unsubscribe from topic subscription