package wamp

  1. Overview
  2. Docs
On This Page
  1. Wamp
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module WampSource

wamp-proto.org implementation in OCaml

%%VERSION%% — homepage

Wamp

Sourcetype msgtyp =
  1. | HELLO
  2. | WELCOME
  3. | ABORT
  4. | GOODBYE
  5. | ERROR
  6. | PUBLISH
  7. | PUBLISHED
  8. | SUBSCRIBE
  9. | SUBSCRIBED
  10. | UNSUBSCRIBE
  11. | UNSUBSCRIBED
  12. | EVENT
Sourceval msgtyp_of_enum : int -> msgtyp option
Sourceval msgtyp_to_enum : msgtyp -> int
Sourcetype 'a dict = (string * 'a) list
Sourcetype 'a hello = {
  1. realm : Uri.t;
  2. details : 'a dict;
}
Sourcetype 'a welcome = {
  1. id : int;
  2. details : 'a dict;
}
Sourcetype 'a details_reason = {
  1. details : 'a dict;
  2. reason : Uri.t;
}
Sourcetype 'a goodbye = {
  1. details : 'a dict;
  2. reason : Uri.t;
}
Sourcetype 'a error = {
  1. reqtype : int;
  2. reqid : int;
  3. details : 'a dict;
  4. error : Uri.t;
  5. args : 'a list;
  6. kwArgs : 'a dict;
}
Sourcetype 'a publish = {
  1. reqid : int;
  2. options : 'a dict;
  3. topic : Uri.t;
  4. args : 'a list;
  5. kwArgs : 'a dict;
}
Sourcetype ack = {
  1. reqid : int;
  2. id : int;
}
Sourcetype 'a subscribe = {
  1. reqid : int;
  2. options : 'a dict;
  3. topic : Uri.t;
}
Sourcetype 'a event = {
  1. subid : int;
  2. pubid : int;
  3. details : 'a dict;
  4. args : 'a list;
  5. kwArgs : 'a dict;
}
Sourcetype 'a msg =
  1. | Hello of 'a hello
  2. | Welcome of 'a welcome
  3. | Abort of 'a details_reason
  4. | Goodbye of 'a details_reason
  5. | Error of 'a error
  6. | Publish of 'a publish
  7. | Published of ack
  8. | Subscribe of 'a subscribe
  9. | Subscribed of ack
  10. | Unsubscribe of ack
  11. | Unsubscribed of int
  12. | Event of 'a event
Sourceval hello : realm:Uri.t -> details:'a dict -> 'a msg
Sourceval welcome : id:int -> details:'a dict -> 'a msg
Sourceval abort : details:'a dict -> reason:Uri.t -> 'a msg
Sourceval goodbye : details:'a dict -> reason:Uri.t -> 'a msg
Sourceval error : reqtype:int -> reqid:int -> details:'a dict -> error:Uri.t -> args:'a list -> kwArgs:'a dict -> 'a msg
Sourceval publish : reqid:int -> options:'a dict -> topic:Uri.t -> args:'a list -> kwArgs:'a dict -> 'a msg
Sourceval published : reqid:int -> id:int -> 'a msg
Sourceval subscribe : reqid:int -> options:'a dict -> topic:Uri.t -> 'a msg
Sourceval subscribed : reqid:int -> id:int -> 'a msg
Sourceval unsubscribe : reqid:int -> id:int -> 'a msg
Sourceval unsubscribed : reqid:int -> 'a msg
Sourceval event : subid:int -> pubid:int -> details:'a dict -> args:'a list -> kwArgs:'a dict -> 'a msg
Sourcetype role =
  1. | Subscriber
  2. | Publisher
Sourceval string_of_role : role -> string