output server info

This commit is contained in:
srgooglo 2022-05-05 09:46:26 +02:00
parent a68cdb1ffe
commit 56f3d95423

View File

@ -119,7 +119,9 @@ class Server {
// initialize http server // initialize http server
await this.httpInterface.listen(this.HTTPlistenPort, this.params.listen ?? "0.0.0.0") await this.httpInterface.listen(this.HTTPlistenPort, this.params.listen ?? "0.0.0.0")
// output server info
console.log(`✅ Server is up and running!`) console.log(`✅ Server is up and running!`)
this.consoleOutputServerInfo()
} }
handleWSClientConnection = async (socket) => { 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 module.exports = Server