JS API Reference

Interface: NetworkEvents

network/api.NetworkEvents

Table of contents

Properties

Properties

networkCreated

networkCreated: (event: { network: Network }) => void

Type declaration

▸ (event): void

Parameters
NameType
eventObject
event.networkNetwork
Returns

void

Defined in

src/network/api.ts:6


errorCreatingNetwork

errorCreatingNetwork: (event: { error: Error }) => void

Type declaration

▸ (event): void

Parameters
NameType
eventObject
event.errorError
Returns

void

Defined in

src/network/api.ts:7


networkRemoved

networkRemoved: (event: { network: Network }) => void

Type declaration

▸ (event): void

Parameters
NameType
eventObject
event.networkNetwork
Returns

void

Defined in

src/network/api.ts:9


errorRemovingNetwork

errorRemovingNetwork: (event: { network: Network ; error: Error }) => void

Type declaration

▸ (event): void

Parameters
NameType
eventObject
event.networkNetwork
event.errorError
Returns

void

Defined in

src/network/api.ts:10


nodeCreated

nodeCreated: (event: { network: Network ; node: NetworkNode }) => void

Type declaration

▸ (event): void

Parameters
NameType
eventObject
event.networkNetwork
event.nodeNetworkNode
Returns

void

Defined in

src/network/api.ts:12


errorCreatingNode

errorCreatingNode: (event: { network: Network ; error: Error }) => void

Type declaration

▸ (event): void

Parameters
NameType
eventObject
event.networkNetwork
event.errorError
Returns

void

Defined in

src/network/api.ts:13


nodeRemoved

nodeRemoved: (event: { network: Network ; node: NetworkNode }) => void

Type declaration

▸ (event): void

Parameters
NameType
eventObject
event.networkNetwork
event.nodeNetworkNode
Returns

void

Defined in

src/network/api.ts:15


errorRemovingNode

errorRemovingNode: (event: { network: Network ; node: NetworkNode ; error: Error }) => void

Type declaration

▸ (event): void

Parameters
NameType
eventObject
event.networkNetwork
event.nodeNetworkNode
event.errorError
Returns

void

Defined in

src/network/api.ts:16

Was this helpful?