I’m trying to build a web application using js_of_ocaml (incr_dom to be more precise), and I need to implement rpcs inside the web app. Specifically, I would want to send an Async_rpc_kernel.Rpc to a server given its host and port. However, since the unix part of Async is not supported with js_of_ocaml, I won’t have access to libraries such as Async_unix.Tcp, which prevents me from using the usual way of establishing a Rpc connection. (e.g. I would normally use Tcp.Where_to_connect.of_host_and_port combined with Rpc.Connection.client to establish a connection)
How may I go around it?