aboutsummaryrefslogtreecommitdiff
path: root/portal/ws
diff options
context:
space:
mode:
authorClombrong <cromblong@egregore.fun>2025-06-26 12:07:49 +0200
committerClombrong <cromblong@egregore.fun>2025-06-26 21:40:44 +0200
commit37d47541083c3eaf3ea9f6c3445e8ba926ee609c (patch)
tree53c5f1ce958de109d0bea898a7cc61201f531020 /portal/ws
parentd3bb6df8d8a728a10dfa6c23328c03824a24f602 (diff)
feat(portal): add socket type
Diffstat (limited to 'portal/ws')
-rw-r--r--portal/ws/portal.ml2
1 files changed, 2 insertions, 0 deletions
diff --git a/portal/ws/portal.ml b/portal/ws/portal.ml
index 5cfc88a..f14a2ab 100644
--- a/portal/ws/portal.ml
+++ b/portal/ws/portal.ml
@@ -7,6 +7,8 @@ let sjs = Js.to_string
type t = (signal, async) stream * ((signal, sync) stream option -> unit)
+type socket = WebSockets.webSocket Js.t
+
let xmlns = "urn:ietf:params:xml:ns:xmpp-framing"
(* sic. XEP-0156: "host-meta files MUST be fetched only over HTTPS". I don't make the