aboutsummaryrefslogtreecommitdiff
path: root/bench
diff options
context:
space:
mode:
authorGravatar Luigi Pinca <luigipinca@gmail.com> 2023-06-17 23:05:11 +0200
committerGravatar GitHub <noreply@github.com> 2023-06-17 14:05:11 -0700
commit68c092aef25f11b25ed61bb0edcc1ebb1a2a7413 (patch)
treee17368f818e3deea1803f40c1988134236b8c211 /bench
parent9b8054ae11cdcbfb94974c55b492b553b0e8bc1d (diff)
downloadbun-68c092aef25f11b25ed61bb0edcc1ebb1a2a7413.tar.gz
bun-68c092aef25f11b25ed61bb0edcc1ebb1a2a7413.tar.zst
bun-68c092aef25f11b25ed61bb0edcc1ebb1a2a7413.zip
Set the publishToSelf option to true (#3343)
All messages sent by the clients are expected to be received by all clients. Without the `publishToSelf` option a message is not sent back to the sender and the benchmark hangs.
Diffstat (limited to 'bench')
-rw-r--r--bench/websocket-server/chat-server.bun.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/bench/websocket-server/chat-server.bun.js b/bench/websocket-server/chat-server.bun.js
index b4c71a6dc..9d45b4622 100644
--- a/bench/websocket-server/chat-server.bun.js
+++ b/bench/websocket-server/chat-server.bun.js
@@ -32,6 +32,7 @@ const server = Bun.serve({
},
perMessageDeflate: false,
+ publishToSelf: true
},
fetch(req, server) {