CommandOptions
Per-command overrides for Connection.command: pin a command id so a
reconnect can replay the same logical command, cap the attempt count, or
supply your own retry delay.
Properties
Section titled “Properties”| Property | Type | Stability | Presence | Description |
|---|---|---|---|---|
commandId |
string |
optional | Reuse this id for a reconnect/replay of the same logical command. | |
maxAttempts |
number |
optional | Total attempts, including the first. | |
retryDelay |
(attempt: number, error: MspError) => Promise<void> |
optional | Injectable so deterministic tests do not sleep. |
Source
clients/sdk-ts/src/connection/connection.ts:75
{ "kind": "Interface", "canonicalPath": "CommandOptions"}