9335099b4aff05ef2e3d06525cf53c9b60e26f60a726b820644fd3886c8db7f583e94a1d497b58765b04d8882f932f0901a9ccd3958d462c7580e1fa8895be 496 B

12345678910111213141516171819
  1. import { IClientOptions, MqttClient } from '../client'
  2. /**
  3. * connect - connect to an MQTT broker.
  4. *
  5. * @param {Object} opts - see MqttClient#constructor
  6. */
  7. declare function connect (opts: IClientOptions): MqttClient
  8. /**
  9. * connect - connect to an MQTT broker.
  10. *
  11. * @param {String} brokerUrl - url of the broker
  12. * @param {Object} opts - see MqttClient#constructor
  13. */
  14. declare function connect (brokerUrl: string, opts?: IClientOptions): MqttClient
  15. export { connect }
  16. export { MqttClient }