Hi,
I am receiving data via WebSocket for RTO v2, and the data comes in the format shown in the attached file. I cannot find out how to assign this data to a variable. I only see it written in the run area. The data is written after the following line of code, but I am unsure how to handle this JSON object on the Java side.
_websocket.sendText(requestJsonString);
In my previously written code, I was able to receive it using fieldlist
, but I don't know how to retrieve it in RTO v2.
@Override public void onRefreshMsg(RefreshMsg refreshMsg, OmmConsumerEvent ommConsumerEvent) { arylNewVirbaseRateRics = decodeFieldList(refreshMsg.payload().fieldList()); }
I have one more question. Do I have to use websocket for cloud RTOv2? Can't I get data via http like before? After all, this code will only run at certain times of the day, it doesn't need to be running all the time.
Thanks. RTOv2.txt