aboutsummaryrefslogtreecommitdiff
path: root/test/hello.ml
diff options
context:
space:
mode:
authorClombrong <cromblong@egregore.fun>2025-08-14 22:39:05 +0200
committerClombrong <cromblong@egregore.fun>2025-08-14 22:39:05 +0200
commit1283666e6cc07c3149667dfb3218a0dbae62abd6 (patch)
tree9dffd02c583cfffcf4ca30c743a0f5a41bdc6160 /test/hello.ml
parentff7765b631e9b2a6c7c2d1e849e200b1b6c8c949 (diff)
feat(session): give end-user access to update function
Diffstat (limited to 'test/hello.ml')
-rw-r--r--test/hello.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/hello.ml b/test/hello.ml
index c7bf46e..e91f65f 100644
--- a/test/hello.ml
+++ b/test/hello.ml
@@ -16,13 +16,13 @@ let main =
}
in
let waiter, wakener = Lwt.wait () in
- try%lwt let* state, connect = create config.sasl.jid.domainpart config in
+ try%lwt let* state, update = create config.sasl.jid.domainpart config in
S.map (function
| Connected (portal, Logged_in _) -> portal.push None;
Lwt.wakeup wakener ()
| _ -> ())
state |> S.keep;
- connect ();
+ update (Connecting config.sasl.jid.domainpart);
waiter
with exn ->
begin