diff options
| -rw-r--r-- | README.md | 6 | ||||
| -rw-r--r-- | bench/websocket-server/README.md | 2 |
2 files changed, 2 insertions, 6 deletions
@@ -2189,12 +2189,6 @@ Bun.serve<User>({ // so we use publish() ws.publish("the-group-chat", `${ws.data.name}: ${message}`); - // if we wanted to publish to everyone except the sender, we could first unsubscribe from the topic - // ws.unsubscribe("the-group-chat"); - // then publish - // ws.publish("the-group-chat", `${ws.data.name}: ${message}`); - // then re-subscribe - // ws.subscribe("the-group-chat"); }, close(ws, code, reason) { diff --git a/bench/websocket-server/README.md b/bench/websocket-server/README.md index 2578c8d51..0954596d8 100644 --- a/bench/websocket-server/README.md +++ b/bench/websocket-server/README.md @@ -34,4 +34,6 @@ For example, when the client sends `"foo"`, the server sends back `"John: foo"` The client script waits until it receives all the messages for each client before sending the next batch of messages. +TODO: once Deno lands their performance improvements, increase the client count (it was originally going to be 32 or 64, but that would've exluded Deno from the benchmark) + This project was created using `bun init` in bun v0.2.1. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime. |
