"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const httpServer = require("http-server");
class HttpServer {
    constructor(options) {
        this.server = this.startHttpServer(options);
    }
    startHttpServer(options) {
        let server = httpServer.createServer(options);
        return server;
    }
    async listen(port) {
        return new Promise((resolve, reject) => {
            this.server.listen(port, '0.0.0.0', data => {
                resolve(data);
            });
        });
    }
}
exports.HttpServer = HttpServer;
exports.default = HttpServer;
//# sourceMappingURL=HttpServer.js.map