|
|
@@ -1,5 +1,6 @@
|
|
|
package cn.reghao.bnt.web.ws.handler;
|
|
|
|
|
|
+import cn.reghao.bnt.common.docker.model.DockerPayload;
|
|
|
import cn.reghao.bnt.web.ws.SessionManagerFront;
|
|
|
import cn.reghao.bnt.web.ws.WsSender;
|
|
|
import cn.reghao.bnt.web.ws.event.DockerOpsService;
|
|
|
@@ -48,6 +49,7 @@ public class FrontendHandler implements WebSocketHandler {
|
|
|
if (webSocketMessage instanceof TextMessage) {
|
|
|
log.info("接收到 WebSocket 文本消息");
|
|
|
String jsonPayload = (String) webSocketMessage.getPayload();
|
|
|
+ DockerPayload dockerPayload = JsonConverter.jsonToObject(jsonPayload, DockerPayload.class);
|
|
|
JsonObject jsonObject = JsonConverter.jsonToJsonElement(jsonPayload).getAsJsonObject();
|
|
|
String ops = jsonObject.get("ops").getAsString();
|
|
|
String machineId = jsonObject.get("machineId").getAsString();
|