summaryrefslogtreecommitdiff
path: root/8sync/systems/websocket/frame.scm
diff options
context:
space:
mode:
Diffstat (limited to '8sync/systems/websocket/frame.scm')
-rw-r--r--8sync/systems/websocket/frame.scm8
1 files changed, 4 insertions, 4 deletions
diff --git a/8sync/systems/websocket/frame.scm b/8sync/systems/websocket/frame.scm
index 831456a..35dc551 100644
--- a/8sync/systems/websocket/frame.scm
+++ b/8sync/systems/websocket/frame.scm
@@ -106,16 +106,16 @@ bytevector BV, masked with MASKING-KEY. By default, the data is
unmasked."
(make-frame #t 'close masking-key bv))
-(define* (make-text-frame text #:optional masking-key)
+(define* (make-text-frame text #:optional masking-key #:key (final? #t) (continuation? #f)) ;; bah: optional
"Return a text data frame containing the string TEXT, masked with MASKING-KEY.
By default, the text is unmasked."
- (make-frame #t 'text masking-key (string->utf8 text)))
+ (make-frame final? (if continuation? 'continuation 'text) masking-key (string->utf8 text)))
-(define* (make-binary-frame bv #:optional masking-key)
+(define* (make-binary-frame bv #:optional masking-key #:key (final? #t) (continuation? #f))
"Return a binary data frame containing the contents of the
bytevector BV, masked with MASKING-KEY. By default, the data is
unmasked."
- (make-frame #t 'binary masking-key bv))
+ (make-frame final? (if continuation? 'continuation 'binary) masking-key bv))
(define (continuation-frame? frame)
"Return #t if FRAME is a continuation frame."