It doesn’t look like there’s an http client library that works both on bucklescript and on native with the same api (please correct me if I’m wrong about this). Writing one requires having a cross-platform promises api that wraps JS.Promise on bucklescript and either lwt or async on native. Is anyone working on this? Would it be possible to make a “polyfill” for eg: Async.Deferred that wrapped JS.Promise on bucklescript? If it’s possible that makes more sense to me than inventing a new api because the ocaml community has had years to discover the warts in Async and lwt.
I would really like to know this as well, it would be great if the reason knowledge gained could be applied to writing native server applications.