package graphql_jsoo_client

  1. Overview
  2. Docs

Module Graphql_jsoo_client.ClientSource

Sourceval 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

Sourceval disconnect : Graphql_jsoo_client__.Connection.t -> unit

disconnect con disconnect the websocket assosiated with the connection

Sourceval 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)

Sourceval trace_console : string -> unit

send traces to console

Sourceval string_of_state : Graphql_jsoo_client__.Connection.t -> string

string_of_state con returns a string for the connection state

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

Innovation. Community. Security.