X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fwebsocket-server-pool%2Fws-worker_threads%2Fsrc%2Fmain.ts;h=f3aea4e5b60a2cdc15fa2f3a124ed93673b39b53;hb=e4b146844ec6f85f328119ee24b0d9695c3df587;hp=d5b2cc78e8e4feda873602ea9b1074e581d3d8f9;hpb=fefd3cef3596e4e79dfeea1a1d6dfa39726e2ef5;p=poolifier.git diff --git a/examples/typescript/websocket-server-pool/ws-worker_threads/src/main.ts b/examples/typescript/websocket-server-pool/ws-worker_threads/src/main.ts index d5b2cc78..f3aea4e5 100644 --- a/examples/typescript/websocket-server-pool/ws-worker_threads/src/main.ts +++ b/examples/typescript/websocket-server-pool/ws-worker_threads/src/main.ts @@ -1,6 +1,7 @@ import { type RawData, WebSocketServer } from 'ws' -import { type DataPayload, type MessagePayload, MessageType } from './types.js' + import { requestHandlerPool } from './pool.js' +import { type DataPayload, type MessagePayload, MessageType } from './types.js' const port = 8080 const wss = new WebSocketServer({ port }, () => {