UNPKG

@allgemein/eventbus

Version:
17 lines (16 loc) 597 B
import { IReader } from '../IReader'; import { AbstractMqttConnection } from './AbstractMqttConnection'; import { IMqttOptions } from './IMqttOptions'; import { IMqttMessage } from './IMqttMessage'; export declare class MqttReader extends AbstractMqttConnection implements IReader { topic: string; /** * identifies the instance (nodeId) */ channel: string; redisChannel: string; constructor(topic: string, channel: string, options: IMqttOptions); close(): Promise<void>; open(): Promise<unknown>; subscribe(callback: (msg: IMqttMessage) => void): void; }