diff options
author | Clombrong <cromblong@egregore.fun> | 2025-06-26 16:41:40 +0200 |
---|---|---|
committer | Clombrong <cromblong@egregore.fun> | 2025-06-26 21:40:53 +0200 |
commit | 3dd884417ad78993bf6f3dc59349f20bd3fddfa0 (patch) | |
tree | dc45971b5ea6c620cb03c554c310531b2ec9eac1 /lib/stream.ml | |
parent | 763187955aed2c6ff07eee5f31d413bef81075df (diff) |
fix(stream): remove start function
Diffstat (limited to 'lib/stream.ml')
-rw-r--r-- | lib/stream.ml | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/stream.ml b/lib/stream.ml index c817571..07bb21c 100644 --- a/lib/stream.ml +++ b/lib/stream.ml @@ -36,18 +36,6 @@ let get (stream : (signal, async) stream) : Xml.element Lwt.t = | Some xml -> Lwt.return xml | None -> Lwt.fail (InvalidStanza (signal |> write_xml |> to_string)) -(** [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 start domain : Portal.t Lwt.t = - let* stream, _push = Portal.connect domain - in let push = function - | None -> Portal.close (stream, _push); - | anything -> _push anything - in let+ _id = Portal.header domain (stream, _push) - in stream, push - (** [parse_features el] is a [stream_features] record with all the features of the [<stream:features>] stanza contained in [el]. *) let parse_features (el : Xml.element) : stream_features = |