aboutsummaryrefslogtreecommitdiff
path: root/test/js
diff options
context:
space:
mode:
authorClombrong <cromblong@egregore.fun>2025-06-25 00:46:39 +0200
committerClombrong <cromblong@egregore.fun>2025-06-25 00:46:39 +0200
commit787c431aa66b343d5c57c348ce50f922a3500e77 (patch)
tree73809c4cb41b00df1df94b365d280a569bdcc6f0 /test/js
parent1becf17af5e7795e32332a464e06517800c71391 (diff)
fix(websockets_hello): stop picking up authenticate's features stream
Diffstat (limited to 'test/js')
-rw-r--r--test/js/websockets_hello.ml13
1 files changed, 6 insertions, 7 deletions
diff --git a/test/js/websockets_hello.ml b/test/js/websockets_hello.ml
index 91c2b70..952be45 100644
--- a/test/js/websockets_hello.ml
+++ b/test/js/websockets_hello.ml
@@ -18,13 +18,12 @@ let rec run t =
else ()
let main (stream, push) config =
- let* _stream = Stream.get stream
- in let+ _auth = Sasl.authenticate (stream, push) config
- in match _auth with
- | Error (NotAuthorized, Some (_, text)) -> print_endline ("Not authorized: " ^ text)
- | Error (MalformedRequest, Some (_, text)) -> print_endline ("Malformed request: " ^ text)
- | Error _ -> print_endline "Error!"
- | Ok _ -> print_endline "Success!"
+ let+ _auth = Sasl.authenticate (stream, push) config
+ in match _auth with
+ | Error (NotAuthorized, Some (_, text)) -> print_endline ("Not authorized: " ^ text)
+ | Error (MalformedRequest, Some (_, text)) -> print_endline ("Malformed request: " ^ text)
+ | Error _ -> print_endline "Error!"
+ | Ok _ -> print_endline "Success!"
let () =
run @@