aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClombrong <cromblong@egregore.fun>2025-06-10 13:03:33 +0200
committerClombrong <cromblong@egregore.fun>2025-06-10 13:03:33 +0200
commitcef7a98c4414816ea719ae58c3848d09d4367bb6 (patch)
tree0c574efbd0faf6dde50bf8321fdb54ca70b48caf
parentf4920de85f08668b7c21617d3fcfa0082ea7885a (diff)
docs(stream): add docstring for the start function
-rw-r--r--lib/stream.ml3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/stream.ml b/lib/stream.ml
index 5da4aea..dc779f8 100644
--- a/lib/stream.ml
+++ b/lib/stream.ml
@@ -1,6 +1,9 @@
open Lwt.Syntax
let start domain : Portal.t Lwt.t =
+ (** [start domain] is a promise containing a Portal (stream * push) connected to the XMPP server [domain].
+
+ Currently, it doesn't handle anything except the initial [<open/>] stanza. *)
let* stream, _push = Portal.connect domain
in let push = function
| None -> _push (Some Portal.stanza_close);