How to use http-server.close:
127 128 129 130 131 132 133 134 135 136
await page.evaluate(() => { console.log('test: done total time', window.testTime.toFixed(3)); }); browser.close(); server.close(); })();
How to use http-server.createServer:
949 950 951 952 953 954 955 956 957 958
index.join('\n') ); }); gulp.task('simpleserver', ['generate-test-samples'], function(cb) { httpServer.createServer({ root: '../', cache: 5 }).listen(8080); httpServer.createServer({ root: '../', cache: 5 }).listen(8088); console.log('LISTENING on 8080 and 8088'); });