I am using the LSEG ELECTRON_DD to get data through a WebSocket connection.
Everything works fine at first, and I receive the data correctly. However, after some time, the WebSocket connection automatically disconnects. When I restart it, it works again, but the same problem happens after a while.
The error message I see is: “connection to remote host was lost.”
I also noticed that if I subscribe to many RICs, the connection breaks faster than when I use fewer RICs.
Right now, I am using two or three exchanges and subscribing to all their RICs using a single connection.
Could you please guide me on:
- What is the best way to use WebSocket connections?
- Is it better to use multiple WebSocket connections with fewer RICs each, or one connection with many RICs?
- What could be causing the connection to break?