aboutsummaryrefslogtreecommitdiff
path: root/portal/ws/portal.ml
diff options
context:
space:
mode:
Diffstat (limited to 'portal/ws/portal.ml')
-rw-r--r--portal/ws/portal.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/portal/ws/portal.ml b/portal/ws/portal.ml
index dfd12cf..233ea8d 100644
--- a/portal/ws/portal.ml
+++ b/portal/ws/portal.ml
@@ -50,8 +50,8 @@ let header ?from domain {stream; push; _} =
| Some id -> Lwt.return id
| None -> Lwt.fail_with "Invalid stream opening server-side."
-let close {push=p; _} =
- {|<close xmlns="|} ^ xmlns ^ {|" />|} |> string |> parse_xml |> signals |> Option.some |> p
+(** [close] is a [<close/>] stanza. *)
+let close = {|<close xmlns="|} ^ xmlns ^ {|" />|} |> string |> parse_xml |> signals
exception MalformedStanza of Markup.location * Markup.Error.t