aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-10-18 22:57:06 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-10-18 22:57:06 -0700
commit8b4c3ec0c7d95b0c4c74ed02722f29c6d18df5c7 (patch)
tree0c45a7cb2c47b1b03c465cd26549314c6c18a9f1
parent9c7eb75a9ac845d92bfdfd6cc574dc8f39bde293 (diff)
downloadbun-8b4c3ec0c7d95b0c4c74ed02722f29c6d18df5c7.tar.gz
bun-8b4c3ec0c7d95b0c4c74ed02722f29c6d18df5c7.tar.zst
bun-8b4c3ec0c7d95b0c4c74ed02722f29c6d18df5c7.zip
Add todo
-rw-r--r--README.md6
-rw-r--r--bench/websocket-server/README.md2
2 files changed, 2 insertions, 6 deletions
diff --git a/README.md b/README.md
index 1995335d4..c8c83a869 100644
--- a/README.md
+++ b/README.md
@@ -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.