From a808e8a486ba3e08bc62cc77c7a0724fb8173b81 Mon Sep 17 00:00:00 2001 From: Clombrong Date: Fri, 27 Jun 2025 09:02:31 +0200 Subject: feat(stream): add function initiate --- test/hello.ml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test') 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 -> -- cgit v1.2.3