Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/local/lib/node_modules/wonlog/node_modules/wonlog-server/dist/express_server/ drwxr-xr-x | |
| Viewing file: Select action/file-type: "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExpressServer = void 0;
const WonlogExpressApp_1 = require("./src/WonlogExpressApp");
class ExpressServer {
constructor(host, port) {
this._webSocketServer = null;
this._wonlogExpressApp = null;
this._httpServer = null;
this.host = host;
this.port = port;
}
get httpServer() {
return this._httpServer;
}
boot() {
// TODO
}
start() {
this.initialize();
}
stop() {
// TODO
}
initialize() {
this._wonlogExpressApp = new WonlogExpressApp_1.WonlogExpressApp();
const app = this._wonlogExpressApp.getApp();
app.set('port', this.port);
app.set('host', this.host);
this._httpServer = app.listen(app.get('port'), app.get('host'), () => {
console.log(' wonlog HTTP server is running at http://%s:%d', app.get('host'), app.get('port'));
});
}
setWebSocketServer(webSocketServer) {
this._webSocketServer = webSocketServer;
if (this._wonlogExpressApp) {
this._wonlogExpressApp.setWebSocketServer(webSocketServer);
}
else {
throw new Error('WonlogExpressApp is not ready');
}
}
}
exports.ExpressServer = ExpressServer;
//# sourceMappingURL=index.js.map |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0044 ]-- |