Any connection can be turned into an RPC server, acting as a shared connection for multiple client Connection.ts. Rate limiting is managed on the server side.
Important. This feature is highly experimental. The protocol may change without warning.
val serve :
t->where_to_listen:
([< Async.Socket.Address.t ]as 'a, 'b)Async.Tcp.Where_to_listen.t->('a, 'b)Async.Tcp.Server.tAsync.Deferred.t
val connect_exn :
[< Async.Socket.Address.t ]Async.Tcp.Where_to_connect.t->tAsync.Deferred.t