summaryrefslogtreecommitdiff
path: root/portal/lib/portal.mli
diff options
context:
space:
mode:
authorClombrong <cromblong@egregore.fun>2025-06-18 13:31:40 +0200
committerClombrong <cromblong@egregore.fun>2025-06-18 13:37:39 +0200
commit8d709f897ccba1d42af4e90fae0d741a6b835a03 (patch)
treeb90aece55521839d6cd2b2ae49bbec09dc5f87fd /portal/lib/portal.mli
parentf6bf68a86908f1967bda9573b6d1ae7c2f8c7078 (diff)
feat(portal): add XML namespace to interface
Diffstat (limited to 'portal/lib/portal.mli')
-rw-r--r--portal/lib/portal.mli8
1 files changed, 8 insertions, 0 deletions
diff --git a/portal/lib/portal.mli b/portal/lib/portal.mli
index 5da97ad..a560f5e 100644
--- a/portal/lib/portal.mli
+++ b/portal/lib/portal.mli
@@ -2,6 +2,14 @@ open Markup
type t = (signal, async) stream * ((signal, sync) stream option -> unit)
+(** This is the XML namespace of the underlying element stream.
+
+ You can rely on it on your code, as an escape hatch, but you should probably not,
+ since the Portal interface is supposed to be agnostic.
+
+ Still, bad implementations exist -- Use with care. *)
+val xmlns : string
+
val stanza_open : ?from:string -> string -> (signal, sync) stream
val stanza_close : (signal, sync) stream