Documentation

Starting port listening is synchronous. .

On Fri, Jun 27, 2014 at 10:22 AM, Merlin Nimier-David
<notifications@github.com> wrote:

>> @@ -50,4 +61,30 @@ Note that the first function **does not take any callback**. It is simply respon
>>  
>>  ## Test framework
>>  
>> -`anyfetch.js` provides a framework to easily run a mock server in order to test your app.
>> +`anyfetch.js` provides a ready-to-run mock server based on Restify. It may be useful to test apps that use the AnyFetch API.
>> +
>> +The mock server is created with `Anyfetch.createMockServer()` and started with `server.listen(port, cb)`. It is a simple [Restify server](http://mcavage.me/node-restify/).
> Well, it's useful if you want to wait for it to have started before sendit requests to it, right?
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/AnyFetch/anyfetch.js/pull/36/files#r14283519