Skip to content

$eventInfo

$eventInfo will give the given property when nodeError, nodeDestroy, etc. events emitted.

Usage

$eventInfo[property]

Parameters

FieldTypeDescriptionRequired
propertystringEvent property (see bellow )true

Property

FieldReturnsDescription
namestringNode name
errorstringError
leftnumberNode reconnecting tries left
codestringError code
intervalnumberNode reconnecting interval
reasonstringError reason
countnumberNode disconnected count
infostringNode debug info
jsonunknownNode raw json

Example(s)

This will give the given property when nodeError, nodeDestroy, etc. events emitted.

1
voice.nodeDebug({
2
name: "eventinfo",
3
code: `
4
$log[$eventInfo[name]: $eventInfo[info]]
5
`
6
});