JS API Reference
Interface: NetworkEvents
network/api.NetworkEvents
Table of contents
Properties
- networkCreated
- errorCreatingNetwork
- networkRemoved
- errorRemovingNetwork
- nodeCreated
- errorCreatingNode
- nodeRemoved
- errorRemovingNode
Properties
networkCreated
• networkCreated: (event
: { network
: Network
}) => void
Type declaration
▸ (event
): void
Parameters
Name | Type |
---|---|
event | Object |
event.network | Network |
Returns
void
Defined in
errorCreatingNetwork
• errorCreatingNetwork: (event
: { error
: Error
}) => void
Type declaration
▸ (event
): void
Parameters
Name | Type |
---|---|
event | Object |
event.error | Error |
Returns
void
Defined in
networkRemoved
• networkRemoved: (event
: { network
: Network
}) => void
Type declaration
▸ (event
): void
Parameters
Name | Type |
---|---|
event | Object |
event.network | Network |
Returns
void
Defined in
errorRemovingNetwork
• errorRemovingNetwork: (event
: { network
: Network
; error
: Error
}) => void
Type declaration
▸ (event
): void
Parameters
Name | Type |
---|---|
event | Object |
event.network | Network |
event.error | Error |
Returns
void
Defined in
nodeCreated
• nodeCreated: (event
: { network
: Network
; node
: NetworkNode
}) => void
Type declaration
▸ (event
): void
Parameters
Name | Type |
---|---|
event | Object |
event.network | Network |
event.node | NetworkNode |
Returns
void
Defined in
errorCreatingNode
• errorCreatingNode: (event
: { network
: Network
; error
: Error
}) => void
Type declaration
▸ (event
): void
Parameters
Name | Type |
---|---|
event | Object |
event.network | Network |
event.error | Error |
Returns
void
Defined in
nodeRemoved
• nodeRemoved: (event
: { network
: Network
; node
: NetworkNode
}) => void
Type declaration
▸ (event
): void
Parameters
Name | Type |
---|---|
event | Object |
event.network | Network |
event.node | NetworkNode |
Returns
void
Defined in
errorRemovingNode
• errorRemovingNode: (event
: { network
: Network
; node
: NetworkNode
; error
: Error
}) => void
Type declaration
▸ (event
): void
Parameters
Name | Type |
---|---|
event | Object |
event.network | Network |
event.node | NetworkNode |
event.error | Error |
Returns
void