package graphql_jsoo_client

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val connect : ?trace:(string -> unit) -> ?protocol:string -> ?host:string option -> ?port:int option -> string -> Graphql_jsoo_client__.Connection.t Lwt.t

connect ~trace ~host ~port path creates a WebSocket connection to the given host, port and path. If no host or port is given it will use the one the page (if any) is served from. Trace can be used to trace events. Default is no trace.

Protocol is "ws" or "wss" for secure connections.

Returns a connection object

val disconnect : Graphql_jsoo_client__.Connection.t -> unit

disconnect con disconnect the websocket assosiated with the connection

val debug_list_handlers : Graphql_jsoo_client__.Connection.t -> (string * float * string) list

debug_list_handlers con returns a list of handlers associated with connection. The list has typples of (id, time added, operation type)

val trace_console : string -> unit

send traces to console

val string_of_state : Graphql_jsoo_client__.Connection.t -> string

string_of_state con returns a string for the connection state

module Make (Q : QuerySig.Query) : sig ... end
OCaml

Innovation. Community. Security.