Topic

constructor(path: String, isRetained: Boolean)

Parameters

path

Defines the path for the given topic. The path is a unique string across all topics. Think of it like the path of MQTT (just without the wildcard options).

isRetained

Whether this topic should be retained. If set to true, the latest item on the topic will always be cached (retained) and on new subscriptions to the topic, the latest, retained item will be emitted instantly.