repositories
/
poolifier.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
fix: fix pool sizing in examples
[poolifier.git]
/
examples
/
typescript
/
websocket-server-pool
/
ws-worker_threads
/
src
/
types.ts
1
export enum
MessageType
{
2
echo
=
'echo'
,
3
factorial
=
'factorial'
4
}
5
6
export interface
MessagePayload
<
T
=
unknown
> {
7
type
:
MessageType
8
data
:
T
9
}
10
11
export interface
DataPayload
{
12
number
?:
number
13
}
14
15
export interface
WorkerData
<
T
=
unknown
> {
16
data
:
T
17
}
18
19
export interface
WorkerResponse
<
T
=
unknown
> {
20
data
:
T
21
}