$eventInfo
$eventInfo
will give the given property when nodeError, nodeDestroy, etc. events emitted.
Usage
Parameters
Field | Type | Description | Required |
---|---|---|---|
property | string | Event property (see bellow ) | true |
Property
Field | Returns | Description |
---|---|---|
name | string | Node name |
error | string | Error |
left | number | Node reconnecting tries left |
code | string | Error code |
interval | number | Node reconnecting interval |
reason | string | Error reason |
count | number | Node disconnected count |
info | string | Node debug info |
json | unknown | Node raw json |
Example(s)
This will give the given property when nodeError, nodeDestroy, etc. events emitted.
This will give the given property when nodeError, nodeDestroy, etc. events emitted.