package erm_xmpp

  1. Overview
  2. Docs

Parameters

module X : XMPP.S

Signature

val ns_muc : string option
val ns_muc_user : string option
val ns_muc_admin : string option
val ns_muc_owner : string option
val ns_muc_unique : string option
exception InvalidProtocol
type role =
  1. | RoleModerator
  2. | RoleParticipant
  3. | RoleVisitor
  4. | RoleNone
type affiliation =
  1. | AffiliationOwner
  2. | AffiliationAdmin
  3. | AffiliationMember
  4. | AffiliationOutcast
  5. | AffiliationNone
val maybe : ('a -> 'b) -> 'a option -> 'b option
val get_attr_value_option : Xml.name -> Xml.attribute list -> Xml.cdata option
val get_subcdata_option : Xml.qname -> Xml.element -> string option
val encode_muc : ?maxchars:int -> ?maxstanzas:int -> ?seconds:int -> ?since:int -> ?password:Xml.cdata -> unit -> Xml.element
type muc_data = {
  1. maxchars : int option;
  2. maxstanzas : int option;
  3. seconds : int option;
  4. since : int option;
  5. password : string option;
}
val try_int_of_string : string -> int option
val decode_muc : Xml.element -> muc_data
module User : sig ... end
module Admin : sig ... end
module Owner : sig ... end
module Unique : sig ... end
val enter_room : 'a X.session_data -> ?maxchars:int -> ?maxstanzas:int -> ?seconds:int -> ?since:int -> ?password:Xml.cdata -> ?nick:string -> JID.t -> unit X.t
val leave_room : 'a X.session_data -> ?reason:Xml.cdata -> nick:string -> JID.t -> unit X.t
OCaml

Innovation. Community. Security.