mirror of
https://github.com/whitechi73/OpenShamrock.git
synced 2024-08-14 13:12:17 +08:00
Shamrock
: 输出心跳日志
This commit is contained in:
parent
34eccda233
commit
3f9613c43c
@ -120,6 +120,7 @@ internal abstract class WebSocketClientServlet(
|
|||||||
return@timer
|
return@timer
|
||||||
}
|
}
|
||||||
val runtime = AppRuntimeFetcher.appRuntime
|
val runtime = AppRuntimeFetcher.appRuntime
|
||||||
|
LogCenter.log("WebSocketClient心跳: ${app.longAccountUin}", Level.DEBUG)
|
||||||
send(
|
send(
|
||||||
GlobalJson.encodeToString(
|
GlobalJson.encodeToString(
|
||||||
PushMetaEvent(
|
PushMetaEvent(
|
||||||
|
@ -61,6 +61,7 @@ internal abstract class WebSocketTransmitServlet(
|
|||||||
timer("heartbeat", true, 0, heartbeatInterval) {
|
timer("heartbeat", true, 0, heartbeatInterval) {
|
||||||
val runtime = AppRuntimeFetcher.appRuntime
|
val runtime = AppRuntimeFetcher.appRuntime
|
||||||
val curUin = runtime.currentAccountUin
|
val curUin = runtime.currentAccountUin
|
||||||
|
LogCenter.log("WebSocket心跳: $curUin", Level.DEBUG)
|
||||||
broadcastAnyEvent(
|
broadcastAnyEvent(
|
||||||
PushMetaEvent(
|
PushMetaEvent(
|
||||||
time = System.currentTimeMillis() / 1000,
|
time = System.currentTimeMillis() / 1000,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user