try {
String be = text.substring(0, text.indexOf("["));
String af = text.substring(text.indexOf("["));
String bb = be + “[“test”,{“data”:[” + af + “]}]”;
listener.onMessage(webSocket, bb);
} catch (Exception e) {
e.printStackTrace();
}
} else {
listener.onMessage(webSocket, text);
}
}
public void onMessage(WebSocket webSocket, ByteString bytes) {
listener.onMessage(webSocket, bytes);
Log.d(“TTTT”, “onMessage bytes==>” + bytes.toString());
}
public void onClosing(WebSocket webSocket, int code, String reason) {
listener.onClosing(webSocket, code, reason);
}
public void onClosed(WebSocket webSocket, int code, String reason) {
listener.onClosed(webSocket, code, reason);
}
public void onFailure(WebSocket webSocket