getPublishedTopics method
- String subgraph
inherited
Get list of topics that can be subscribed to.
This does not return topics that have no publishers. See getSystemState to get more comprehensive list.
subgraph
is for restricting topic names to match within the specified subgraph.
Subgraph namespace is resolved relative to the caller's namespace.
Use empty string to specify all names.
Implementation
Future<List<TopicInfo>> getPublishedTopics(
String subgraph,
) async =>
(await _call('getPublishedTopics', [nodeName, subgraph]))
.map((t) => TopicInfo(t[0], t[1]))
.toList();