Hook called when client sends CONNECT.
Validates the connection request and returns CONNACK. Throw an error to reject the connection.
Hook called when client sends CONNECT.
Validates the connection request and returns CONNACK. Throw an error to reject the connection.