setTimeOutMs
Sets the request timeout, in milliseconds, for transport-level operations.
Signature
dcent.setTimeOutMs(ms: number): void
Parameters
| Field | Type | Notes |
|---|---|---|
ms | number | Timeout in milliseconds. An invalid value throws (validated at the transport boundary). |
Notes
- The default timeout is
180000(180 s / 3 minutes) — you rarely need to change it. - If no transport exists yet, the value is cached and applied when the connection is created.
- On expiry the transport layer returns
time_out(5006). The hardware-level device timeout isdevice_timeout(5003).
dcent.setTimeOutMs(180000) // 180s (default)
info
Some requests ask the device to sign twice, so they take longer. The 180000 default is sized to cover this; only lower it for a single, quick signature.