mirror of
https://github.com/ragestudio/linebridge.git
synced 2025-06-09 10:34:17 +00:00
output server info
This commit is contained in:
parent
a68cdb1ffe
commit
56f3d95423
@ -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
|
Loading…
x
Reference in New Issue
Block a user