BlnkInit:
| Option | Type | Default | Description |
|---|---|---|---|
baseUrl | string | — | Required. Core base URL. A trailing / is appended if missing. |
timeout | number | 10000 | HTTP timeout in milliseconds. |
retryCount | number | 1 | Total request attempts including the first. Retries apply only to idempotent GET requests, not POST, PUT, or DELETE. |
retryDelayMs | number | 2000 | Base delay between retry attempts in milliseconds. Uses linear backoff. |
logger | BlnkLogger | console | Custom logger for SDK info and error output. |
Custom logger
Attach a logger to control SDK output in production:ApiResponse object if it may contain sensitive metadata from your application.
For response patterns, see Error handling.