mockServerClient.js
function (ports) {
            if (!Array.isArray(ports)) {
                throw new Error("ports parameter must be an array but found: " + JSON.stringify(ports));
            }
            return makeRequest(host, port, "/bind", {ports: ports});
        }
function (ports) {
            if (!Array.isArray(ports)) {
                throw new Error("ports parameter must be an array but found: " + JSON.stringify(ports));
            }
            return makeRequest(host, port, "/bind", {ports: ports});
        }
function ( ports ) { if ( ! Array . isArray ( ports ) ) { throw new Error ( "ports parameter must be an array but found: " + JSON . stringify ( ports ) ) ; } return makeRequest ( host , port , "/bind" , { ports : ports } ) ; }
Add new ports the server is bound to and listening on

@param ports array of ports to bind to, use 0 to bind to any free port
Add new ports the server is bound to and listening on