graphic-pixi/lib/message/MqttBroker.d.ts

14 lines
526 B
TypeScript
Raw Normal View History

2023-12-12 17:31:07 +08:00
import mqtt from 'mqtt';
import { HandleMessage, MessageClient } from './BasicMessageClient';
import { CompleteMessageCliOption } from './MessageBroker';
export declare class MqttMsgClient extends MessageClient {
cli: mqtt.MqttClient;
retryTimes: number;
subMsgHandler: Map<string, HandleMessage>;
constructor(options: CompleteMessageCliOption);
subscribe(destination: string, handle: HandleMessage): boolean;
unsubscribe0(destination: string): void;
get connected(): boolean;
close(): void;
}