UNPKG

peepee

Version:

Visual Programming Language Where You Connect Ports Of One EventEmitter to Ports Of Another EventEmitter

18 lines (14 loc) 297 B
import { EventEmitter } from "events"; export default class PassThroughAgent 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) } }