Bonsai + xmlHttpRequest example?

Short question:

Is there example code anywhere for getting bonsai to work with xmlHttpRequest ?

Detailed question:

  1. I’ve checked the github repo:
rg -i xmlhttp -l
bindings/dygraph/dist/dygraph.js
bindings/dygraph/dist/dygraph.min.js

not much there.

  1. On my own, I have code that does xmlHttpRequest, with a return type of Bar.t Deferred.t (Deferred here referring to janestreet/async).

  2. It is not clear to me how to integrate this Deferred.t with my existing Bonsai app.

Either of the following would be helpful:

4a. Example of bonsai + xmlhttprequest

4b. Example of bonsai + Bar.t Deferred.t

Thanks!

1 Like