Module Rpc_effect_kernel.Status

module State : sig ... end
type t = {
  1. state : State.t;
  2. connecting_since : Core.Time_ns.t option;
}
val sexp_of_t : t -> Sexplib0.Sexp.t
val state : where_to_connect:Where_to_connect.t Bonsai.t -> Bonsai.graph @ local -> t Bonsai.t

A component whose output tracks the state of a connection to a host.

val on_change : where_to_connect:Where_to_connect.t Bonsai.t -> callback:(State.t -> unit Bonsai.For_open.Effect.t) Bonsai.t -> Bonsai.graph @ local -> unit

on_change triggers effects when the connection state changes.