Tezt_tezos.Websocketval connect :
?runner:Tezt_wrapper.Runner.t ->
?hooks:Tezt_wrapper.Process_hooks.t ->
?name:string ->
string ->
t Lwt.tconnect ?runner ?hook ?name url connects to a websocket server and returns the client.
val close : t -> unit Lwt.tTerminate the client.
val send : t -> Tezt_wrapper.JSON.t -> unit Lwt.tSend a JSON object on the websocket.
val send_raw : t -> string -> unit Lwt.tSend a raw string on the websocket.
val recv : ?timeout:float -> t -> Tezt_wrapper.JSON.t Lwt.tReceive a JSON object on the websocket.
val send_recv :
?timeout:float ->
t ->
Tezt_wrapper.JSON.t ->
Tezt_wrapper.JSON.t Lwt.tSend and receive response on websocket.
val pause : t -> unitSend SIGSTOP to websocket client process.
val resume : t -> unitSend SIGCONT to websocket client process.