mirror of
https://github.com/whitechi73/OpenShamrock.git
synced 2024-08-14 13:12:17 +08:00
Shamrock
: fix #173
This commit is contained in:
parent
cb904c1f1c
commit
0360c81bee
@ -89,7 +89,13 @@ internal abstract class WebSocketTransmitServlet(
|
||||
if (path != "/api") {
|
||||
eventReceivers.remove(conn)
|
||||
}
|
||||
LogCenter.log({ "WSServer断开(${conn.remoteSocketAddress.address.hostAddress}:${conn.remoteSocketAddress.port}$path): $code,$reason,$remote" }, Level.WARN)
|
||||
runCatching {
|
||||
conn.remoteSocketAddress.address.hostAddress to conn.remoteSocketAddress.port
|
||||
}.onSuccess {
|
||||
LogCenter.log({ "WSServer断开(${it.first}:${it.second}$path): $code,$reason,$remote" }, Level.WARN)
|
||||
}.onFailure {
|
||||
LogCenter.log({ "WSServer断开($path): $code,$reason,$remote" }, Level.WARN)
|
||||
}
|
||||
}
|
||||
|
||||
override fun onMessage(conn: WebSocket, message: String) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user