package wamp

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

wamp-proto.org implementation in OCaml

%%VERSION%% — homepage

Wamp

type 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
val msgtyp_of_enum : int -> msgtyp option
val msgtyp_to_enum : msgtyp -> int
type 'a dict = (string * 'a) list
type '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;
    }
val hello : realm:Uri.t -> details:'a dict -> 'a msg
val welcome : id:int -> details:'a dict -> 'a msg
val abort : details:'a dict -> reason:Uri.t -> 'a msg
val goodbye : details:'a dict -> reason:Uri.t -> 'a msg
val error : reqtype:int -> reqid:int -> details:'a dict -> error:Uri.t -> args:'a list -> kwArgs:'a dict -> 'a msg
val publish : reqid:int -> options:'a dict -> topic:Uri.t -> args:'a list -> kwArgs:'a dict -> 'a msg
val published : reqid:int -> id:int -> 'a msg
val subscribe : reqid:int -> options:'a dict -> topic:Uri.t -> 'a msg
val subscribed : reqid:int -> id:int -> 'a msg
val unsubscribe : reqid:int -> id:int -> 'a msg
val unsubscribed : reqid:int -> 'a msg
val event : subid:int -> pubid:int -> details:'a dict -> args:'a list -> kwArgs:'a dict -> 'a msg
type role =
  1. | Subscriber
  2. | Publisher
val string_of_role : role -> string
OCaml

Innovation. Community. Security.