Line

You are reading the unreleased docs (next). See latest (v0.9)

ui/client/features/dev-server/domain/DevServerPolling

While the server is coming up the card is watched closely; otherwise it is only kept honest (a branch switch, a crash).

Cockpit client (features), next. Source: ui/client/features/dev-server/domain/DevServerPolling.ts.

Variables#

POLL_MS#

const POLL_MS: 2000 = 2000

Defined in: ui/client/features/dev-server/domain/DevServerPolling.ts:3


POLL_STARTING_MS#

const POLL_STARTING_MS: 600 = 600

Defined in: ui/client/features/dev-server/domain/DevServerPolling.ts:2

While the server is coming up the card is watched closely; otherwise it is only kept honest (a branch switch, a crash).

Functions#

pollIntervalMs()#

pollIntervalMs(state): number

Defined in: ui/client/features/dev-server/domain/DevServerPolling.ts:6

How long to wait between status reads, given the state the card is showing (undefined before the first read).

Parameters#

state

string | undefined

Returns#

number