UNPKG

@uns-kit/core

Version:

Core utilities and runtime building blocks for UNS-based realtime transformers.

21 lines 684 B
import { IMqttWorkerData } from "./mqtt-interfaces.js"; import { ThrottledPublisher, ThrottledSubscriber } from "./throttled-queue.js"; export declare class MqttWorker { private mqttProxy; protected publisher: ThrottledPublisher; protected subscriber: ThrottledSubscriber; constructor(workerData: IMqttWorkerData); /** * Listen for incoming messages from the main thread and process them. */ private initializeMessageListener; /** * Get the state of the publisher. */ getPublisherState(): boolean; /** * Get the state of the subscriber. */ getSubscriberState(): boolean; } //# sourceMappingURL=mqtt-worker.d.ts.map