X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fhttp-server-pool%2Fexpress-cluster%2Fsrc%2Fworker.ts;h=e04900ab2474afa7833c6bde6c5086030ab3882f;hb=f62ddff2196c790663a3868e94a25942443395f0;hp=d575647375edca90297ee647d0c4c26395e288f1;hpb=c63a35a04c190989be80f9218d97e0aca739475e;p=poolifier.git diff --git a/examples/typescript/http-server-pool/express-cluster/src/worker.ts b/examples/typescript/http-server-pool/express-cluster/src/worker.ts index d5756473..e04900ab 100644 --- a/examples/typescript/http-server-pool/express-cluster/src/worker.ts +++ b/examples/typescript/http-server-pool/express-cluster/src/worker.ts @@ -1,7 +1,9 @@ import type { Server } from 'node:http' import type { AddressInfo } from 'node:net' -import { ClusterWorker } from 'poolifier' + import express, { type Express, type Request, type Response } from 'express' +import { ClusterWorker } from 'poolifier' + import type { WorkerData, WorkerResponse } from './types.js' class ExpressWorker extends ClusterWorker {