package
1.0.2
Repository: https://github.com/ppniu/mqtt.golang.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

NewConnection creates a connection manager and begins the connection process (will retry until the context is cancelled).

# Variables

ConnectionDownError Down will be returned when a request is made but the connection to the broker is down Note: It is possible that the connection will drop between the request being made and a response being received in which case a different error will be received (this is only returned if the connection is down at the time the request is made).

# Structs

ClientConfig adds a few values, required to manage the connection, to the standard paho.ClientConfig (note that conn will be ignored).
ConnectionManager manages the connection with the broker and provides thew ability to publish messages.
DisconnectError will be passed when the server requests disconnection (allows this error type to be detected).
WebSocketConfig enables customisation of the websocket connection.