mqtt-rxjs
Version:
Rxjs shell for MQTT.js library
26 lines (25 loc) • 586 B
TypeScript
import { MqttMessage } from './Interfaces';
import { Subject } from 'rxjs';
export declare class Mqtt {
private _mqtt;
private _host;
private _port;
private _username;
private _password;
subscriptions: Subject<MqttMessage>[];
/**
* constructor
*/
constructor(host: string, port: number, username: string, password: string);
/**
*
* @param channel
*/
register(channel: string): any;
/**
*
* @param topic
* @param message
*/
onMessage(mqttMessage: MqttMessage): void;
}