Improve the webserver's constructor

This makes the webserver configurable during instantiation rather than
having to set the parameters afterwards.
This commit is contained in:
Tim van der Meij 2024-02-17 16:12:26 +01:00
parent 985ba77579
commit 2e6fa797d9
No known key found for this signature in database
GPG key ID: 8C3FD2925A5F2762
3 changed files with 12 additions and 12 deletions

View file

@ -2068,8 +2068,7 @@ gulp.task(
console.log("### Starting local server");
const { WebServer } = await import("./test/webserver.mjs");
const server = new WebServer();
server.port = 8888;
const server = new WebServer({ port: 8888 });
server.start();
}
)