code: def set_listener(self, name, listener):
          
          with self.__listeners_change_condition:
              self.listeners[name] = listener
docs: Set a named listener to use with this connection.
          See :py:class:`stomp.listener.ConnectionListener`
  
          :param str name: the name of the listener
          :param ConnectionListener listener: the listener object