CodeZeroEvent
Lifecycle events emitted by the Action instance
Action extends Node.js EventEmitter. Use action.on(event, handler) to subscribe to lifecycle events.
import { CodeZeroEvent } from '@code0-tech/hercules';
action.on(CodeZeroEvent.connected, () => console.log('Ready'));
action.on(CodeZeroEvent.error, (err) => console.error(err.message));Events
Prop
Type