import { Request } from '../client/Client'; export class WorkerClient { id: string; debug: (msg: string, ...args: any[]) => void; constructor(id: string) { this.id = id; this.debug = require('debug')(`dcf:worker:${id}`); } init() { throw new Error('Must be overriden.'); } processRequest(m: Request): any | Promise { throw new Error('Must be overriden.'); } dispose(): void | Promise { throw new Error('Must be overriden.'); } }