This is available as TCP\Server in the www repository.
TCP\Server
namespace HH\Lib\TCP; final class Server implements \HH\Lib\Network\Server<CloseableSocket> {...}
::createAsync(\HH\Lib\Network\IPProtocolVersion $ipv, string $host, int $port, ServerOptions $opts = dict [ ]): Awaitable<this>
->getLocalAddress(): (string, int)
->nextConnectionAsync(): Awaitable<CloseableSocket>
->stopListening(): void