File tree Expand file tree Collapse file tree 4 files changed +8
-11
lines changed Expand file tree Collapse file tree 4 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 1
1
'use strict'
2
2
3
+ const { Buffer } = require ( 'buffer' )
3
4
const Transform = require ( 'readable-stream' ) . Transform
4
5
const duplexify = require ( 'duplexify' )
5
6
Original file line number Diff line number Diff line change 1
1
'use strict'
2
2
3
+ const { Buffer } = require ( 'buffer' )
3
4
const WS = require ( 'ws' )
4
5
const debug = require ( 'debug' ) ( 'mqttjs:ws' )
5
6
const duplexify = require ( 'duplexify' )
Original file line number Diff line number Diff line change 1
1
'use strict'
2
2
3
+ const { Buffer } = require ( 'buffer' )
3
4
const Transform = require ( 'readable-stream' ) . Transform
4
5
const duplexify = require ( 'duplexify' )
5
6
Original file line number Diff line number Diff line change 1
- import { IClientOptions , MqttClient } from "../client" ;
2
- /**
3
- * connect - connect to an MQTT broker.
4
- *
5
- * @param {String } brokerUrl - url of the broker
6
- */
7
- declare function connect ( brokerUrl : string ) : MqttClient ;
1
+ import { IClientOptions , MqttClient } from '../client'
8
2
9
3
/**
10
4
* connect - connect to an MQTT broker.
11
5
*
12
6
* @param {Object } opts - see MqttClient#constructor
13
7
*/
14
- declare function connect ( opts : IClientOptions ) : MqttClient ;
8
+ declare function connect ( opts : IClientOptions ) : MqttClient
15
9
16
10
/**
17
11
* connect - connect to an MQTT broker.
18
12
*
19
13
* @param {String } brokerUrl - url of the broker
20
14
* @param {Object } opts - see MqttClient#constructor
21
15
*/
22
- declare function connect ( brokerUrl : string , opts : IClientOptions ) : MqttClient ;
16
+ declare function connect ( brokerUrl : string , opts ? : IClientOptions ) : MqttClient
23
17
24
- export { connect } ;
25
- export { MqttClient } ;
18
+ export { connect }
19
+ export { MqttClient }
You can’t perform that action at this time.
0 commit comments