-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: buffer is not defined in browser (#1420)
- Loading branch information
Showing
4 changed files
with
8 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,19 @@ | ||
import { IClientOptions, MqttClient } from "../client"; | ||
/** | ||
* connect - connect to an MQTT broker. | ||
* | ||
* @param {String} brokerUrl - url of the broker | ||
*/ | ||
declare function connect(brokerUrl: string): MqttClient; | ||
import { IClientOptions, MqttClient } from '../client' | ||
|
||
/** | ||
* connect - connect to an MQTT broker. | ||
* | ||
* @param {Object} opts - see MqttClient#constructor | ||
*/ | ||
declare function connect(opts: IClientOptions): MqttClient; | ||
declare function connect (opts: IClientOptions): MqttClient | ||
|
||
/** | ||
* connect - connect to an MQTT broker. | ||
* | ||
* @param {String} brokerUrl - url of the broker | ||
* @param {Object} opts - see MqttClient#constructor | ||
*/ | ||
declare function connect(brokerUrl: string, opts: IClientOptions): MqttClient; | ||
declare function connect (brokerUrl: string, opts?: IClientOptions): MqttClient | ||
|
||
export { connect }; | ||
export { MqttClient }; | ||
export { connect } | ||
export { MqttClient } |