mirror of
https://github.com/JasonYANG170/IOTConnect-Web.git
synced 2024-11-24 04:36:31 +00:00
10 lines
541 B
TypeScript
10 lines
541 B
TypeScript
import MqttClient, { IClientOptions } from '../client';
|
|
declare function connect(brokerUrl: string): MqttClient;
|
|
declare function connect(opts: IClientOptions): MqttClient;
|
|
declare function connect(brokerUrl: string, opts?: IClientOptions): MqttClient;
|
|
declare function connectAsync(brokerUrl: string): Promise<MqttClient>;
|
|
declare function connectAsync(opts: IClientOptions): Promise<MqttClient>;
|
|
declare function connectAsync(brokerUrl: string, opts?: IClientOptions): Promise<MqttClient>;
|
|
export default connect;
|
|
export { connectAsync };
|