aboutsummaryrefslogtreecommitdiff
path: root/test/js/websockets_hello.ml
diff options
context:
space:
mode:
authorClombrong <cromblong@egregore.fun>2025-06-10 02:09:21 +0200
committerClombrong <cromblong@egregore.fun>2025-06-10 02:09:21 +0200
commitf4920de85f08668b7c21617d3fcfa0082ea7885a (patch)
tree446dccf846dce68099611e952075628063f3e740 /test/js/websockets_hello.ml
parentaf41ba0181d0f23591d7b82d3425c419c8ba73da (diff)
feat(auth): use streams directly for send_auth_stanza
Diffstat (limited to 'test/js/websockets_hello.ml')
-rw-r--r--test/js/websockets_hello.ml5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/js/websockets_hello.ml b/test/js/websockets_hello.ml
index 3b48e16..8bc7487 100644
--- a/test/js/websockets_hello.ml
+++ b/test/js/websockets_hello.ml
@@ -21,10 +21,9 @@ let () =
let domain = "egregore.fun" in
let* stream, push = Stream.start domain
in let* _stream = Lwt_stream.get stream
- in let _auth = Auth.send_auth_stanza (stream, push)
+ in let* _auth = Auth.send_auth_stanza (stream, push)
"test@example.com" "password"
Auth.PLAIN
- in print_endline _auth;
- push (Some "<iq>wrong</iq>");
+ in push (Some "<iq>wrong</iq>");
let+ _recv = Lwt_stream.get stream in
push None