private handleEventByType()

in src/worker/api/WorkerManager.ts [106:113]


  private handleEventByType(payload: { data: DaemonEvent<any> }) {
    const event = payload.data;
    this.activeCommands.delete(event.replyId);
    const callback = this.handlers.get(event.type + event.source);
    if (typeof callback === "function") {
      callback(event);   
    }
  }