compose method

Future<ConfigParams> compose(
  1. String? correlationId,
  2. ConnectionParams connection,
  3. CredentialParams credential
)

Composes MQTT connection options from connection and credential parameters.

  • correlationId (optional) transaction id to trace execution through call chain.
  • connection connection parameters
  • credential credential parameters Returns Future that receives resolved options. Throws error.

Implementation

Future<ConfigParams> compose(String? correlationId,
    ConnectionParams connection, CredentialParams credential) async {
  // Validate connections
  _validateConnection(correlationId, connection);
  return _composeOptions(connection, credential);
}