Create a new topic instance from the given libp2p publication topic name.
the structured name of a Coaty publication topic
a Coaty communication topic instance or undefined if the topic name represents a Raw or external IoValue event.
Gets a libp2p topic for subscription.
the protocol version
the event type
the event filter or undefined
correlation ID for two-way message, otherwise undefined
Gets the p2p publication topic name for the given topic levels.
the protocol version
an event type
a filter for an event type, or undefined
correlation ID for two-way message, otherwise undefined
Determines whether the given topic name starts with the same topic level as a Coaty topic.
a topic name
true if the given topic name is a potential Coaty topic; false otherwise
Determines whether the given name is a valid libp2p topic for publication or subscription.
a topic name
indicates whether the name is used for subscription (true) or publication (false)
true if the given topic name can be used as requested; false otherwise
Generated using TypeDoc
Represents libp2p pub-sub topics for Coaty communication events (except Raw and external IoValue events).