I am trying to comsume ric with RTO websocket (java). I made some improvements, but they were not sufficient, as I am still encountering the following error. For some reason, I cannot progress beyond obtaining the token. On the Fiddler side, I can only see the process up to the point where the token is retrieved. Do you have any advice for this situation? Why do I get this error but bellow code blog runs for my request.
/**
* Called when an error occurs while attempting to connect the WebSocket.
*/
public void onConnectError(WebSocket websocket, WebSocketException e)
{
System.out.println(DateTimeStamp.getCurrentTime() + " Connect error for " + _name + ":" + e);
reconnect(websocket, false);
}
new 11.txt
Also, Are there any examples of consuming Ric using HTTP requests instead of WebSocket? What advantages does WebSocket provide in this regard? After all, I won't be continuously receiving data; I'll only connect briefly to receive data at certain times of the day. Would WebSocket or a Java example that creates an HTTP request be more advantageous for me?