@yasiriqbal776/mqtt-js
Version:
A library for the MQTT protocol
11 lines (10 loc) • 348 B
TypeScript
import { IClientOptions, MqttClient } from '../client'
/**
* connect - connect to an MQTT broker.
*
* @param {String} [brokerUrl] - url of the broker, optional
* @param {Object} opts - see MqttClient#constructor
*/
declare function connect (brokerUrl?: string | any, opts?: IClientOptions): MqttClient
export { connect }
export { MqttClient }