aboutsummaryrefslogtreecommitdiff
path: root/portal/lib/ws
diff options
context:
space:
mode:
Diffstat (limited to 'portal/lib/ws')
-rw-r--r--portal/lib/ws/portal.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/portal/lib/ws/portal.ml b/portal/lib/ws/portal.ml
index 7ca70db..d5362c1 100644
--- a/portal/lib/ws/portal.ml
+++ b/portal/lib/ws/portal.ml
@@ -5,7 +5,7 @@ open Markup
let jss = Js.string
let sjs = Js.to_string
-type t = async parser * ((signal, sync) stream option -> unit)
+type t = (signal, async) stream * ((signal, sync) stream option -> unit)
(* sic. XEP-0156: "host-meta files MUST be fetched only over HTTPS". I don't make the rules. *)
let well_known_of (domain : string) = "https://" ^ domain ^ "/.well-known/host-meta"
@@ -135,4 +135,4 @@ let connect domain =
|> Markup_lwt.to_lwt_stream
in let+ _ = Lwt_stream.iter (fun x -> ws_push (Some x)) stanzas in ws_push None
in Lwt.async @@ (fun () -> Markup_lwt.(mu_stream |> lwt_stream |> iter to_frames));
- ws_stream |> lwt_stream |> strings_to_bytes |> parse_xml ~report, mu_push
+ ws_stream |> lwt_stream |> strings_to_bytes |> parse_xml ~report |> signals, mu_push