From f2ae920f6a45ff89827a75f1503a651e68c365c4 Mon Sep 17 00:00:00 2001 From: CaiHQ Date: Mon, 1 Nov 2021 18:52:02 +0800 Subject: [PATCH] feat: support requestID auto append in agent websocket --- src/main/base/org/bdware/sc/conn/ResultCallback.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/base/org/bdware/sc/conn/ResultCallback.java b/src/main/base/org/bdware/sc/conn/ResultCallback.java index 1a0a7cd..b447b65 100644 --- a/src/main/base/org/bdware/sc/conn/ResultCallback.java +++ b/src/main/base/org/bdware/sc/conn/ResultCallback.java @@ -22,9 +22,11 @@ public abstract class ResultCallback { public Channel getChannel() { return channel; } - public void onResult(Map object){ + + public void onResult(Map object) { onResult(JsonUtil.toJson(object)); } + public void onResult(JsonObject jo) { onResult(jo.toString()); }