From 56f3d95423ebb3702b530466d416fa0093fbc781 Mon Sep 17 00:00:00 2001 From: srgooglo Date: Thu, 5 May 2022 09:46:26 +0200 Subject: [PATCH] output server info --- src/server/index.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/server/index.js b/src/server/index.js index acaef43..fda4c21 100755 --- a/src/server/index.js +++ b/src/server/index.js @@ -119,7 +119,9 @@ class Server { // initialize http server await this.httpInterface.listen(this.HTTPlistenPort, this.params.listen ?? "0.0.0.0") + // output server info console.log(`✅ Server is up and running!`) + this.consoleOutputServerInfo() } handleWSClientConnection = async (socket) => { @@ -274,6 +276,18 @@ class Server { } }) } + + consoleOutputServerInfo = () => { + console.log(`🌐 Server info:`) + console.table({ + "ID": this.id, + "Version": LINEBRIDGE_SERVER_VERSION, + "HTTP address": this.HTTPAddress, + "WS address": this.WSAddress, + "WS port": this.WSListenPort, + "HTTP port": this.HTTPlistenPort, + }) + } } module.exports = Server \ No newline at end of file