mirror of
https://github.com/whitechi73/OpenShamrock.git
synced 2024-08-14 13:12:17 +08:00
Shamrock
: 修正被动WebSocket日志
This commit is contained in:
parent
c0f2242679
commit
bd45523e25
@ -65,10 +65,12 @@ internal class InitRemoteService : IAction {
|
|||||||
if (token.isNotBlank()) {
|
if (token.isNotBlank()) {
|
||||||
wsHeaders["authorization"] = "bearer $token"
|
wsHeaders["authorization"] = "bearer $token"
|
||||||
}
|
}
|
||||||
LogCenter.log("尝试链接WebSocketClient(url = ${conn.address})",Level.WARN)
|
LogCenter.log("尝试连接WebSocketClient(url = ${conn.address})",Level.WARN)
|
||||||
startWebSocketClient(conn.address, conn.heartbeatInterval ?: 15000, wsHeaders)
|
startWebSocketClient(conn.address, conn.heartbeatInterval ?: 15000, wsHeaders)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
LogCenter.log("未启用被动WebSocket,不会加载连接。")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user