compose method
Future<ConfigParams>
compose(
- String? correlationId,
- ConnectionParams connection,
- CredentialParams credential
Composes MQTT connection options from connection and credential parameters.
correlationId
(optional) transaction id to trace execution through call chain.connection
connection parameterscredential
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);
}