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.
Private
_announcedPrivate
Optional
_idPrivate
Optional
_lastPrivate
Readonly
_namePrivate
_publisherPrivate
Optional
_pubuidPrivate
_subscribersOptional
all?: booleanOptional
periodic?: numberOptional
prefix?: booleanOptional
topicsonly?: booleanPrivate
Readonly
_typePrivate
clientPrivate
valueWhether 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.
Private
notifySets 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.
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.
Generated using TypeDoc
Creates a new topic. This should only be done after the base NTCore client has been initialized.