From ca8d52d90d413e2436dc3f664a0bf771a6a58cbb Mon Sep 17 00:00:00 2001 From: "carpentry-heartbeat[bot]" Date: Wed, 10 Jun 2026 19:09:52 +0200 Subject: [PATCH] Fix stale documentation - README: binary frames are supported since PR #14, update WebSocket section and echo example to reflect this - examples/todo: bump load from web@0.3.0 to web@0.5.0 - bench: remove hardcoded sys.path for developer-local Python packages --- README.md | 5 +++-- bench/ws_bench.py | 1 - bench/ws_bench_small.py | 1 - examples/todo/server.carp | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 31055ed..9cc6382 100644 --- a/README.md +++ b/README.md @@ -177,6 +177,7 @@ and a `WebSocket` handle for sending messages: (match-ref event (WSEvent.Connect) (WebSocket.send ws @"connected") (WSEvent.Message msg) (WebSocket.send ws (fmt "echo: %s" msg)) + (WSEvent.Binary data) (WebSocket.send-binary ws data) (WSEvent.Close) ())) (defserver "0.0.0.0" 3000 @@ -186,8 +187,8 @@ and a `WebSocket` handle for sending messages: The upgrade handshake (RFC 6455) is handled automatically. Once upgraded, the connection uses WebSocket framing over the same non-blocking event -loop. Text frames, ping/pong, and close frames are supported. Binary -frames are not yet supported. +loop. Text frames, binary frames, ping/pong, and close frames are +supported. ### Concurrent connections diff --git a/bench/ws_bench.py b/bench/ws_bench.py index 4df2316..1c8014a 100644 --- a/bench/ws_bench.py +++ b/bench/ws_bench.py @@ -8,7 +8,6 @@ import sys import time -sys.path.insert(0, "/Users/veitheller/Library/Python/3.9/lib/python/site-packages") import websockets CLIENTS = 50 diff --git a/bench/ws_bench_small.py b/bench/ws_bench_small.py index 78b4baa..c10de3d 100644 --- a/bench/ws_bench_small.py +++ b/bench/ws_bench_small.py @@ -4,7 +4,6 @@ import sys import time -sys.path.insert(0, "/Users/veitheller/Library/Python/3.9/lib/python/site-packages") import websockets CLIENTS = 10 diff --git a/examples/todo/server.carp b/examples/todo/server.carp index 9fc223b..3329e5a 100644 --- a/examples/todo/server.carp +++ b/examples/todo/server.carp @@ -1,4 +1,4 @@ -(load "git@github.com:carpentry-org/web@0.3.0") +(load "git@github.com:carpentry-org/web@0.5.0") (load "git@github.com:carpentry-org/orm@0.1.0" "backends/sqlite3.carp") ; ---------------------------------------------------------------------------