From 39fd1ae1ca9efefb4ebafb9f1c96b20a397f9acb Mon Sep 17 00:00:00 2001 From: Clombrong Date: Sat, 28 Jun 2025 09:28:15 +0200 Subject: feat(portal): add starttls to the Portal interface --- portal/portal.mli | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/portal/portal.mli b/portal/portal.mli index 744a579..18a7ccf 100644 --- a/portal/portal.mli +++ b/portal/portal.mli @@ -36,3 +36,7 @@ val close : (signal, sync) stream (** [connect domain] returns a Portal connected to the XMPP server [domain]. *) val connect : string -> t Lwt.t + +(** [starttls portal] mutates [portal] into a TLS-encrypted stream with the same + state. *) +val starttls : t -> unit Lwt.t -- cgit v1.2.3