UNPKG

pishposh

Version:
20 lines (14 loc) 294 B
import { EventEmitter } from "events"; export default class PassThrough extends EventEmitter { id; constructor({id}){ super() this.id = id; } async start(){ console.log('AGENT START', this.constructor.name) } async stop(){ console.log('AGENT STOP', this) } }