X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fhttp-server-pool%2Fexpress-hybrid%2Fsrc%2Fmain.ts;h=040fdc74fea5d88b24474672128cc5988ffcc019;hb=238a6a36482b3cf82d1f984f0bdd7d296a2f4ba1;hp=08563f4b2e753cefa3a331e9d0193be2a809f526;hpb=edd5088275648b8ae534dcd75ba23443fe947954;p=poolifier.git diff --git a/examples/typescript/http-server-pool/express-hybrid/src/main.ts b/examples/typescript/http-server-pool/express-hybrid/src/main.ts index 08563f4b..040fdc74 100644 --- a/examples/typescript/http-server-pool/express-hybrid/src/main.ts +++ b/examples/typescript/http-server-pool/express-hybrid/src/main.ts @@ -17,6 +17,7 @@ const pool = new FixedClusterPool( availableParallelism(), expressWorkerFile, { + enableEvents: false, onlineHandler: () => { pool .execute({ @@ -41,7 +42,7 @@ const pool = new FixedClusterPool( `Express is listening in cluster worker on port ${response?.port}` ) } - return null + return undefined }) .catch(error => { console.error('Express failed to start in cluster worker:', error)