I have a script that connects to the Elektron feed via websocket. The code is based on the following https://github.com/Refinitiv/websocket-api/blob/master/Applications/Examples/R/market_price_batch_view.R
Sometimes it works perfectly, sometimes I have an error message:
send pong send pong [2021-05-04 15:05:02] [error] handle_read_frame error: websocketpp.transport:7 (End of File) send pong Error in websocket callback: invalid state Client disconnected with code 1006 and reason
'send pong' appears when no message with the data is received from the server. This often happens, as not every second there are orders and trades in a place. I do not understand where this handle_read_frame error: websocketpp.transport:7 error comes from as it might happen after 20 minutes or after 6 hours. Could you help to identify where this comes from - from the Refinitiv server or bad internet connection (this is not probable) ?
You can contact the server team to verify if the server cut the connection.
Typically, when the server cuts the connection, it will log the reason for the disconnection.
If it is the Refinitiv server, please directly contact the server team via MyRefinitiv to verify the server log.