mirror of
https://github.com/JasonYANG170/IOTConnect-Web.git
synced 2024-11-23 20:26:28 +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 };
|