(** Hub endpoints for real-time notifications. *) type t = { type_ : string; url : string; } let create ~type_ ~url () = { type_; url } let type_ t = t.type_ let url t = t.url let equal a b = a.type_ = b.type_ && a.url = b.url let pp ppf t = Format.fprintf ppf "%s: %s" t.type_ t.url