Interface: StateChangeEvent
Payload for the 'stateChange' event. Always Object.freeze'd.
Example
conn.on('stateChange', ({ from, to, reason }) => {
logger.info({ from, to, reason });
});
Properties
from
readonlyfrom:ConnectionState
reason?
readonlyoptionalreason?:string
to
readonlyto:ConnectionState