registerSubscriber method

Future<List<String>> registerSubscriber (
  1. String topic,
  2. String topicType
)
inherited

Subscribe the node by nodeName to the specified topic.

In addition to receiving a list of current publishers, the subscriber will also receive notifications of new publishers via the publisherUpdate API

topic is the fully qualified name of the topic topicType is the datatype for the topic. Must be a package-resource name i.e. the .msg name xmlRpcUri is the XML-RPC URI of the caller node

Returns a list of XMLRPC API URIs for nodes currently publishing the specified topic.

Implementation

Future<List<String>> registerSubscriber(
  String topic,
  String topicType,
) async =>
    (await _call(
                'registerSubscriber', [nodeName, topic, topicType, xmlRpcUri])
            as List)
        .cast<String>();