mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-12-02 20:08:40 +08:00
fix agent getverion
This commit is contained in:
parent
98f137e71b
commit
362f3b4068
@ -74,6 +74,10 @@ public class NodeClient extends WebSocketClient {
|
||||
@Override
|
||||
public void onOpen(ServerHandshake serverHandshake) {
|
||||
// 连接成功后获取版本信息
|
||||
getVersion();
|
||||
}
|
||||
|
||||
public void getVersion() {
|
||||
WebSocketMessageModel command = new WebSocketMessageModel("getVersion", this.nodeModel.getId());
|
||||
send(command.toString());
|
||||
}
|
||||
|
@ -108,7 +108,10 @@ public class NodeUpdateHandler extends BaseProxyHandler {
|
||||
return;
|
||||
}
|
||||
for (NodeModel model : nodeModelList) {
|
||||
if (clientMap.containsKey(model.getId())) {
|
||||
NodeClient nodeClient = clientMap.get(model.getId());
|
||||
if (nodeClient != null) {
|
||||
//
|
||||
nodeClient.getVersion();
|
||||
continue;
|
||||
}
|
||||
Map<String, Object> attributes = session.getAttributes();
|
||||
|
Loading…
Reference in New Issue
Block a user