Refinitiv / websocket-api

A direct access WebSocket API that enables easy integration into a multitude of client technology environments such as scripting and web.
Other
68 stars 40 forks source link

unable to create rest webservice and retrieve JSON from the below method in websocket #2

Closed ShyamSanghvi closed 4 years ago

ShyamSanghvi commented 4 years ago

public void onTextMessage(WebSocket websocket, String message) throws JSONException { if(!message.isEmpty()) { System.out.println("RECEIVED:");

                        JSONArray jsonArray = new JSONArray(message);

                        System.out.println(jsonArray.toString(2));

                        for (int i = 0; i < jsonArray.length(); ++i)
                            processMessage(websocket, jsonArray.getJSONObject(i));
                    }
                }
ShyamSanghvi commented 4 years ago

https://github.com/Refinitiv/websocket-api/blob/master/Applications/Examples/java/MarketPrice.java

this is the link of the method in that class

vlevendel commented 4 years ago

@ShyamSanghvi What's the exact error you are noticing? Also, if connecting to Refinitiv Data Platform, please use examples in Applications/Examples/EDP/java.

vlevendel commented 4 years ago

@ShyamSanghvi Are you still experiencing this problem?

ShyamSanghvi commented 4 years ago

Hey thanks for the reply I got the solution . I was able to put th JSon object into thread and then retrieve it . Thanks a ton Thanks for the concern .sir .

On Tue, 21 Apr, 2020, 2:27 AM vlevendel, notifications@github.com wrote:

@ShyamSanghvi https://github.com/ShyamSanghvi Are you still experiencing this problem?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Refinitiv/websocket-api/issues/2#issuecomment-616804764, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMJQNW45JJ44UNYAXTKW3ATRNSZMBANCNFSM4J76F6WA .

vlevendel commented 4 years ago

Thanks for the update. Closing this issue.