repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge dependabot/npm_and_yarn/examples/typescript/http-client-pool/axios-1.6.0 into...
[poolifier.git]
/
examples
/
typescript
/
websocket-server-pool
/
ws-hybrid
/
src
/
types.ts
diff --git
a/examples/typescript/websocket-server-pool/ws-hybrid/src/types.ts
b/examples/typescript/websocket-server-pool/ws-hybrid/src/types.ts
index 055b0456e70e8215b3af292771a8c1044890fc53..d52dbf2396569595aae7918775f208bdcd54154f 100644
(file)
--- a/
examples/typescript/websocket-server-pool/ws-hybrid/src/types.ts
+++ b/
examples/typescript/websocket-server-pool/ws-hybrid/src/types.ts
@@
-1,3
+1,5
@@
+import type { ThreadPoolOptions } from 'poolifier'
+
export enum MessageType {
echo = 'echo',
factorial = 'factorial'
export enum MessageType {
echo = 'echo',
factorial = 'factorial'
@@
-12,8
+14,11
@@
export interface DataPayload {
number?: number
}
number?: number
}
-export interface ClusterWorkerData {
+export interface ClusterWorkerData
extends ThreadPoolOptions
{
port: number
port: number
+ workerFile: string
+ minWorkers?: number
+ maxWorkers?: number
}
export interface ClusterWorkerResponse {
}
export interface ClusterWorkerResponse {