UNPKG

@meddv/ngx-mqtt

Version:

This library isn't just a wrapper around MQTT.js for angular. It uses observables and takes care of subscription handling and message routing.

13 lines (12 loc) 722 B
import { ModuleWithProviders, InjectionToken } from '@angular/core'; import { IMqttClient, IMqttServiceOptions } from './mqtt.model'; import * as i0 from "@angular/core"; export declare const MQTT_SERVICE_OPTIONS: IMqttServiceOptions; export declare const MqttServiceConfig: InjectionToken<IMqttServiceOptions>; export declare const MqttClientService: InjectionToken<IMqttClient>; export declare class MqttModule { static forRoot(config: IMqttServiceOptions, client?: IMqttClient): ModuleWithProviders<MqttModule>; static ɵfac: i0.ɵɵFactoryDeclaration<MqttModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MqttModule, never, never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<MqttModule>; }