From: Rutger van Beusekom Date: Thu, 19 Nov 2020 10:34:37 +0000 (+0100) Subject: websocket: Test failure interleaved frames from 2 separate messages. X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=feb7f5104ddbcb9fd42b93d78f385804793ebb6c;p=8sync.git websocket: Test failure interleaved frames from 2 separate messages. --- diff --git a/demos/websocket/8s-server.scm b/demos/websocket/8s-server.scm index c4b638f..5ea8834 100755 --- a/demos/websocket/8s-server.scm +++ b/demos/websocket/8s-server.scm @@ -42,7 +42,7 @@ (define (main . args) (let* ((hive (make-hive)) - (sleeper (bootstrap-actor hive )) + ;; (sleeper (bootstrap-actor hive )) (server (bootstrap-actor hive #:port %server-port @@ -55,7 +55,11 @@ #:on-ws-message (lambda (ws msg) (format (current-error-port) "on-message: ~s: ~s\n" ws msg)) #:on-ws-open (lambda (ws) - (format (current-error-port) "on-open: ~s\n" ws))))) + (format (current-error-port) "on-open: ~s\n" ws) + (format (current-error-port) "sending: AAA...\n") + (<- (actor-id ws) 'send (make-string (* 1024 1024) #\A)) + (format (current-error-port) "sending: BBB...\n") + (<- (actor-id ws) 'send (make-string (* 1024 1024) #\B)))))) (format (current-error-port) "listening: ~s\n" %server-port) (run-hive hive '()))) diff --git a/demos/websocket/ws-client.html b/demos/websocket/ws-client.html index 5e9c811..7dc87b6 100644 --- a/demos/websocket/ws-client.html +++ b/demos/websocket/ws-client.html @@ -26,18 +26,18 @@