Api / JavaScript /

Listener.on('reconnect', callback)

Event emmited when a node is reconnected

Arguments

'reconnect' String

callback Function

Example

const listener = dop.listen()
listener.on('connect', node => console.log('Connected!') )
listener.on('reconnect', node => console.log('Reconnected!') )

See also