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 msg =
  1. | Hello of {
    1. realm : Uri.t;
    2. details : 'a dict;
    }
  2. | Welcome of {
    1. id : int;
    2. details : 'a dict;
    }
  3. | Abort of {
    1. details : 'a dict;
    2. reason : Uri.t;
    }
  4. | Goodbye of {
    1. details : 'a dict;
    2. reason : Uri.t;
    }
  5. | Error of {
    1. reqtype : int;
    2. reqid : int;
    3. details : 'a dict;
    4. error : Uri.t;
    5. args : 'a list;
    6. kwArgs : 'a dict;
    }
  6. | Publish of {
    1. reqid : int;
    2. options : 'a dict;
    3. topic : Uri.t;
    4. args : 'a list;
    5. kwArgs : 'a dict;
    }
  7. | Published of {
    1. reqid : int;
    2. id : int;
    }
  8. | Subscribe of {
    1. reqid : int;
    2. options : 'a dict;
    3. topic : Uri.t;
    }
  9. | Subscribed of {
    1. reqid : int;
    2. id : int;
    }
  10. | Unsubscribe of {
    1. reqid : int;
    2. id : int;
    }
  11. | Unsubscribed of int
  12. | Event of {
    1. subid : int;
    2. pubid : int;
    3. details : 'a dict;
    4. args : 'a list;
    5. kwArgs : 'a dict;
    }
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
OCaml

Innovation. Community. Security.