Module Cephalopod_firehose_client.Client

type connect_error = [
  1. | `WS_error of string
]
val show_connect_error : connect_error -> Ppx_deriving_runtime.string
type event =
  1. | E_received of Cephalopod_common.Byte_buffer.t
  2. | E_closed

Raw event

type t

The main client

val create : sw:Eio.Switch.t -> stdenv:< Eio_unix.Stdenv.base.. > -> ws_uri:Uri.t -> unit -> (t, connect_error) result
val await : t -> unit
val shutdown : t -> unit
module Msg_event : sig ... end

Higher-level events, decoding the messages

module Subscribe : sig ... end