Skip to main content

Reference / Modules / client / NetworkState

Class: NetworkState<E>

client.NetworkState

Type parameters

NameType
Eextends Endpoint

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new NetworkState<E>(nodesUp, nodesDown): NetworkState<E>

Type parameters

NameType
Eextends Endpoint

Parameters

NameType
nodesUpE[]
nodesDownE[]

Returns

NetworkState<E>

Defined in

packages/client/src/NetworkState.ts:10

Properties

_nodesDown

Private _nodesDown: E[]

Defined in

packages/client/src/NetworkState.ts:21


_nodesUp

Private _nodesUp: E[]

Defined in

packages/client/src/NetworkState.ts:15

Accessors

nodesDown

get nodesDown(): E[]

Returns

E[]

Defined in

packages/client/src/NetworkState.ts:23


nodesUp

get nodesUp(): E[]

Returns

E[]

Defined in

packages/client/src/NetworkState.ts:17

Methods

equals

equals(otherState): boolean

Parameters

NameType
otherStateNetworkState<E>

Returns

boolean

Defined in

packages/client/src/NetworkState.ts:32


update

update(params): void

Parameters

NameType
paramsObject
params.nodesDownE[]
params.nodesUpE[]

Returns

void

Defined in

packages/client/src/NetworkState.ts:27


allUp

allUp<E>(nodesUp): NetworkState<E>

Type parameters

NameType
Eextends Endpoint

Parameters

NameType
nodesUpE[]

Returns

NetworkState<E>

Defined in

packages/client/src/NetworkState.ts:6