package graphql_jsoo_client
Module Graphql_jsoo_client.ClientSource
Source
val connect :
?trace:(string -> unit) ->
?protocol:string ->
?host:string option ->
?port:int option ->
string ->
Graphql_jsoo_client__.Connection.t Lwt.tconnect ~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
disconnect con disconnect the websocket assosiated with the connection
Source
val debug_list_handlers :
Graphql_jsoo_client__.Connection.t ->
(string * float * string) listdebug_list_handlers con returns a list of handlers associated with connection. The list has typples of (id, time added, operation type)
send traces to console
string_of_state con returns a string for the connection state