(self, listener: UserListener)
return assocTopics
Get the list of Topic objects that have given listener
        subscribed. Note: the listener can also get messages from any
        sub-topic of returned list.
Get the list of Topic objects that have given listener
        subscribed. Note: the listener can also get messages from any
        sub-topic of returned list.
Get the list of Topic objects that have given listener subscribed . Note : the listener can also get messages from any sub - topic of returned list .
def getTopicsSubscribed(self, listener: UserListener) -> List[Topic]:
        """
        Get the list of Topic objects that have given listener
        subscribed. Note: the listener can also get messages from any
        sub-topic of returned list.
        """
        assocTopics = []
        for topicObj in self._topicsMap.values():
            if topicObj.hasListener(listener):
                assocTopics.append(topicObj)
        return assocTopics
def getTopicsSubscribed ( self , listener : UserListener ) -> List [ Topic ] : assocTopics = [ ] for topicObj in self . _topicsMap . values ( ) : if topicObj . hasListener ( listener ) : assocTopics . append ( topicObj ) return assocTopics