Web Server Module
Introduced: PhantomJS 1.4
Using an embedded web server module called Mongoose, PhantomJS script can start a web server. This is intended for ease of communication between PhantomJS scripts and the outside world and is not recommended for use as a general production server. There is currently a limit of 10 concurrent requests; any other requests will be queued up.
To start using, you must
require a reference to the
var webserver = require('webserver');