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

Suggest to add handling for on websocket connection disconnected #12

Closed chavalit closed 1 year ago

chavalit commented 4 years ago

In https://github.com/Refinitiv/websocket-api/blob/master/Applications/Examples/EDP/java/MarketPriceEdpGwAuthentication.java

When the consumer WebSocket connection to ERT in Cloud gets disconnected by the ERT in Cloud, the sample application does not print out any information on the output and the process to refresh the token is still repeating. So it is quite confusing. Suggest to impletement onDisconnected() and just terminate the app. Or even better, re-do the whole authentication and item request again.

dmykhailishen commented 3 years ago

@chavalit thank you for reporting the suggestion. Your suggestion will be analyzed and an update about it will be added later on.

vlevendel commented 1 year ago

@chavalit This is addressed in RDP Java examples for V2 authentication support. Closing.