package bonsai

  1. Overview
  2. Docs
A library for building dynamic webapps, using Js_of_ocaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.17.0.tar.gz
sha256=c78c4476ee6b856846e2d0941e5965009d5e1b853e564b2b1bee61202f0b1ebb

doc/bonsai.web/Bonsai_web/Rpc_effect/Status/State/index.html

Module Status.StateSource

Sourcetype t =
  1. | Connecting
  2. | Connected
  3. | Disconnected of Core.Error.t
  4. | Failed_to_connect of Core.Error.t

The status of an RPC connection.

state diagram:

START
 |       .------------------.
 v       v                   \
Connecting -> Connected <-> Disconnected
 |  ^          ^
 v  |          |
Failed_to_connect
include Ppx_compare_lib.Equal.S with type t := t
Sourceval equal : t -> t -> bool
include Sexplib0.Sexpable.S with type t := t
Sourceval t_of_sexp : Sexplib0.Sexp.t -> t
Sourceval sexp_of_t : t -> Sexplib0.Sexp.t