Reference / Modules / client / NetworkState
Class: NetworkState<E>
client.NetworkState
Type parameters
Name | Type |
---|---|
E | extends Endpoint |
Table of contents
Constructors
Properties
Accessors
Methods
Constructors
constructor
• new NetworkState<E
>(nodesUp
, nodesDown
): NetworkState
<E
>
Type parameters
Name | Type |
---|---|
E | extends Endpoint |
Parameters
Name | Type |
---|---|
nodesUp | E [] |
nodesDown | E [] |
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
Name | Type |
---|---|
otherState | NetworkState <E > |
Returns
boolean
Defined in
packages/client/src/NetworkState.ts:32
update
▸ update(params
): void
Parameters
Name | Type |
---|---|
params | Object |
params.nodesDown | E [] |
params.nodesUp | E [] |
Returns
void
Defined in
packages/client/src/NetworkState.ts:27
allUp
▸ allUp<E
>(nodesUp
): NetworkState
<E
>
Type parameters
Name | Type |
---|---|
E | extends Endpoint |
Parameters
Name | Type |
---|---|
nodesUp | E [] |
Returns
NetworkState
<E
>