diff options
author | Clombrong <cromblong@egregore.fun> | 2025-06-27 09:02:31 +0200 |
---|---|---|
committer | Clombrong <cromblong@egregore.fun> | 2025-06-27 09:54:35 +0200 |
commit | a808e8a486ba3e08bc62cc77c7a0724fb8173b81 (patch) | |
tree | 18852f376ffd21f362b730354ee53d5ecbd59d92 /test | |
parent | 13273777453522c4b73083207b3ba50ea3ca6bd0 (diff) |
feat(stream): add function initiate
Diffstat (limited to 'test')
-rw-r--r-- | test/hello.ml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/hello.ml b/test/hello.ml index f9d429b..e55b44a 100644 --- a/test/hello.ml +++ b/test/hello.ml @@ -18,8 +18,7 @@ let main = preferred_mechanisms = [Sasl.PLAIN] } in let domain = (List.nth (String.split_on_char '@' config.jid) 1) in - let* portal = Portal.connect domain in - let* features = Stream.negotiate domain portal in + let* portal, features = Stream.initiate domain in Lwt.catch (fun () -> program portal config features >|= (fun () -> portal.push None)) (fun exn -> |