package mosquitto

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t
module Message : sig ... end
module Version : sig ... end
val create : string -> bool -> (t, [> `EUnix of Unix.error ]) Result.result
val connect : t -> string -> int -> int -> (unit, [> `EUnix of Unix.error ]) Result.result
val reconnect : t -> (unit, [> `EUnix of Unix.error ]) Result.result
val publish : t -> Message.t -> (unit, [> `EUnix of Unix.error ]) Result.result
val subscribe : t -> string -> int -> (unit, [> `EUnix of Unix.error ]) Result.result
val set_callback_message : t -> (Message.t -> unit) -> unit
val set_callback_connect : t -> (int -> unit) -> unit
val set_callback_disconnect : t -> (int -> unit) -> unit
val set_callback_publish : t -> (int -> unit) -> unit
val set_callback_subscribe : t -> (int -> int list -> unit) -> unit
val set_callback_unsubscribe : t -> (int -> unit) -> unit
val set_callback_log : t -> (int -> string -> unit) -> unit
val loop : t -> int -> int -> (unit, [> `EUnix of Unix.error ]) Result.result
val loop_forever : t -> int -> int -> (unit, [> `EUnix of Unix.error ]) Result.result
val socket : t -> Unix.file_descr
OCaml

Innovation. Community. Security.