package reddit_api_async

  1. Overview
  2. Docs

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.

val serve : t -> where_to_listen: ([< Async.Socket.Address.t ] as 'a, 'b) Async.Tcp.Where_to_listen.t -> ('a, 'b) Async.Tcp.Server.t Async.Deferred.t