Client.MakeConstructor for a XMPP client
type transport = Transport.tTransport
type transport_options = Transport.optionstype credentials = [ | `JidPassword of Jid.t * string | (* A JID password pair *) |
| `Anonymous of string | (* Anonymously *) |
]Credentials used to authenticate with XMPP server
val create : ?seed:Stdlib.Random.State.t -> transport_options -> credentials:credentials -> t Lwt.tval connect : t -> unit Lwt.tval disconnect : t -> unit Lwt.tval pp_state : state Fmt.tval iq_gets : ?element:Xmlm.name -> t -> Stanza.Iq.get React.eventval iq_sets : ?element:Xmlm.name -> t -> Stanza.Iq.set React.eventexception StanzaError of Stanza.Error.tval iq_get : t -> ?to':Jid.t -> Xmlc.Tree.t -> Stanza.Iq.result Lwt.tval iq_set : t -> ?to':Jid.t -> Xmlc.Tree.t -> Stanza.Iq.result Lwt.tval send_message : t -> Stanza.Message.t -> unit Lwt.tval send_iq : t -> Stanza.Iq.t -> unit Lwt.tval send_presence : t -> Stanza.Presence.t -> unit Lwt.tval send_xml : t -> Xmlc.Tree.t -> unit Lwt.tval generate_id : t -> string