package wamp

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module WList : sig ... end
module Dict : sig ... end
type hello_t = {
  1. realm : Uri.t;
  2. details : Dict.t;
}
type welcome_t = {
  1. id : int;
  2. details : Dict.t;
}
type details_reason_t = {
  1. details : Dict.t;
  2. reason : Uri.t;
}
type goodbye_t = {
  1. details : Dict.t;
  2. reason : Uri.t;
}
type error_t = {
  1. reqtype : int;
  2. reqid : int;
  3. details : Dict.t;
  4. error : Uri.t;
  5. args : WList.t;
  6. kwArgs : Dict.t;
}
type publish_t = {
  1. reqid : int;
  2. options : Dict.t;
  3. topic : Uri.t;
  4. args : WList.t;
  5. kwArgs : Dict.t;
}
type ack_t = {
  1. reqid : int;
  2. id : int;
}
type subscribe_t = {
  1. reqid : int;
  2. options : Dict.t;
  3. topic : Uri.t;
}
type event_t = {
  1. subid : int;
  2. pubid : int;
  3. details : Dict.t;
  4. args : WList.t;
  5. kwArgs : Dict.t;
}
type msg =
  1. | Hello of hello_t
  2. | Welcome of welcome_t
  3. | Abort of details_reason_t
  4. | Goodbye of details_reason_t
  5. | Error of error_t
  6. | Publish of publish_t
  7. | Published of ack_t
  8. | Subscribe of subscribe_t
  9. | Subscribed of ack_t
  10. | Unsubscribe of ack_t
  11. | Unsubscribed of int
  12. | Event of event_t
val msg_to_yojson : msg -> Yojson.Safe.t
type role =
  1. | Subscriber
  2. | Publisher
val hello : Uri.t -> role list -> msg
val subscribe : ?reqid:int -> ?options:Dict.t -> Uri.t -> int * msg