The client that owns the topic.
The name of the topic.
The type info for the topic.
Optional
defaultValue: TThe default value for the topic.
Whether 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 whether the client is the publisher of the topic.
Whether the client is the publisher of the topic.
Gets the UID of the publisher.
The UID of the publisher, or undefined if the client is not the publisher.
Gets the subscribers to the topic.
The subscribers to the topic.
Gets the type info for the topic.
The type info for the topic.
Publishes the topic.
The properties to publish the topic with.
Optional
cached?: booleanOptional
persistent?: booleanOptional
retained?: booleanOptional
id: numberThe UID of the publisher.
A promise that resolves when the topic is published.
Republishes the topic.
The client to republish with.
A promise that resolves when the topic is republished.
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.
Sets the value of the topic. The client must be the publisher of the topic to set the value.
The value to set.
Creates a new subscriber. This should only be called by the PubSubClient.
The callback to call when the topic value changes.
Whether to immediately notify the subscriber of the current value.
The options for the subscriber.
Optional
all?: booleanOptional
periodic?: numberOptional
prefix?: booleanOptional
topicsonly?: booleanOptional
id: numberThe UID of the subscriber.
Whether to save the subscriber.
The UID of the subscriber.
Updates the value of the topic. This should only be called by the PubSubClient.
The value to update.
The server time of the last value change.
Creates a new topic. This should only be done after the base NTCore client has been initialized.