repositories
/
poolifier.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b858d8d
)
[autofix.ci] apply automated fixes (attempt 2/3)
author
autofix-ci[bot]
<114827586+autofix-ci[bot]@users.noreply.github.com>
Wed, 20 Nov 2024 14:21:59 +0000
(14:21 +0000)
committer
GitHub
<noreply@github.com>
Wed, 20 Nov 2024 14:21:59 +0000
(14:21 +0000)
examples/typescript/websocket-server-pool/ws-cluster/src/worker.ts
patch
|
blob
|
blame
|
history
examples/typescript/websocket-server-pool/ws-hybrid/src/websocket-server-worker.ts
patch
|
blob
|
blame
|
history
diff --git
a/examples/typescript/websocket-server-pool/ws-cluster/src/worker.ts
b/examples/typescript/websocket-server-pool/ws-cluster/src/worker.ts
index 3031bd66cc7a02627f27fd340b11a9fb3b30ed1b..4a0ae6a86f74b28e376b30aded5a15bf7e89a83d 100644
(file)
--- a/
examples/typescript/websocket-server-pool/ws-cluster/src/worker.ts
+++ b/
examples/typescript/websocket-server-pool/ws-cluster/src/worker.ts
@@
-49,7
+49,6
@@
class WebSocketServerWorker extends ClusterWorker<WorkerData, WorkerResponse> {
ws.on('error', console.error)
ws.on('message', (message: RawData) => {
const { data, type } = JSON.parse(
-
message.toString()
) as MessagePayload<DataPayload>
switch (type) {
diff --git
a/examples/typescript/websocket-server-pool/ws-hybrid/src/websocket-server-worker.ts
b/examples/typescript/websocket-server-pool/ws-hybrid/src/websocket-server-worker.ts
index 779f3760249537be6a1501d907ed4c77c2393ec7..86a0c8f8d149b06f83143ed65c3ab3c70d6bd76d 100644
(file)
--- a/
examples/typescript/websocket-server-pool/ws-hybrid/src/websocket-server-worker.ts
+++ b/
examples/typescript/websocket-server-pool/ws-hybrid/src/websocket-server-worker.ts
@@
-66,7
+66,6
@@
class WebSocketServerWorker extends ClusterWorker<
ws.on('error', console.error)
ws.on('message', (message: RawData) => {
const { data, type } = JSON.parse(
-
message.toString()
) as MessagePayload<DataPayload>
switch (type) {