I did make some test with the websocket since some days and i am not complete satiesfied, it feels like the streams for a symbol and timeframe does stop sometimes and my script does not know it and i also dont know what you must code to make the streams not stop or if you must send every few minutes a new request to connect to the streams.
Generally it sound good the websocket streams but i ont know if the way how i have code it is not professionel enough or if the streams have sometimes problems.
I am using the following code to make a connection:
let adress = 'wss://stream.binance.com:9443/ws/'+Symbolname.toLowerCase()+'@kline_'+Periode;
const ws = new WebSocket(adress);
I am sending that call to the websocket a few times for every symbol and every period which i want to get, is that the right way?