MqttCommandHandlerConfig
@totemsdk/edge-mqtt / MqttCommandHandlerConfig
Interface: MqttCommandHandlerConfig
Properties
client
client:
MqttClientPort
commandTopic?
optionalcommandTopic?:string
executor?
optionalexecutor?:MqttCommandExecutor
maxCommandAgeMs?
optionalmaxCommandAgeMs?:number
Maximum age of a command in milliseconds (default 60_000).
metadata?
optionalmetadata?:Record<string,unknown>
receiptTopic?
optionalreceiptTopic?:string
replayStore?
optionalreplayStore?:ReplayLedgerStore
Durable store for the replay ledger. When provided, processed command IDs survive restarts (RFC-007 G4); otherwise an in-memory freshness window is used.
runtime
runtime:
EdgeRuntime
verifyCommandSignature?
optionalverifyCommandSignature?: (envelope) =>Promise<boolean>
Function to verify a command signature.
Parameters
envelope
SignedCommandEnvelope
Returns
Promise<boolean>