summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/session.ml6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/session.ml b/lib/session.ml
index b1eb2c3..7a69d37 100644
--- a/lib/session.ml
+++ b/lib/session.ml
@@ -14,13 +14,15 @@ type state =
(* TCP/WebSocket connected, not connected in XMPP-land *)
| Connected of Portal.t * step
+(** An XMPP session. This type contains a signal representing the state of an XMPP
+ connection, and its update function. *)
type t = {
state : state signal;
update : state -> unit;
}
-(** [create domain config] is a promise containing a signal representing the portal
- connected to the XMPP server located at [domain], and all its supported features.
+(** [create domain config] is a promise containing a session representing the portal
+ connected to the XMPP server located at [domain].
When calling the function, the portal will try to connect to the provided domain.