The client that owns the topic.
The name of the topic.
Protected
_announceProtected
Optional
_lastProtected
clientReadonly
typeWhether the topic has been announced.
Whether the topic has been announced.
Gets the ID of the topic.
The ID of the topic.
Gets the server time of the last value change.
The server time of the last value change.
Gets the name of the topic.
The name of the topic.
Gets the subscribers to the topic.
The subscribers to the topic.
Marks the topic as announced. This should only be called by the PubSubClient.
The parameters of the announcement.
Sets the properties of the topic.
Optional
persistent: booleanIf true, the last set value will be periodically saved to persistent storage on the server and be restored during server startup. Topics with this property set to true will not be deleted by the server when the last publisher stops publishing.
Optional
retained: booleanTopics with this property set to true will not be deleted by the server when the last publisher stops publishing.
The server's response.
Creates a new subscriber.
The callback to call when the topic value changes.
The options for the subscriber.
Optional
id: numberThe UID of the subscriber.
Whether to save the subscriber.
The UID of the subscriber.
Updates the value of a subtopic. Notifies all subscribers of the change.
The params of the subtopic
The value of the subtopic
The time the value was updated
Creates a new topic. This should only be done after the base NTCore client has been initialized.