Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
1 change: 0 additions & 1 deletion bench/ws_bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion bench/ws_bench_small.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/todo/server.carp
Original file line number Diff line number Diff line change
@@ -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")

; ---------------------------------------------------------------------------
Expand Down