This thread should be addressed by kiteconnect developers only.
While streaming data through WebSockets, I noticed data are being missed periodically! I calculated the delay(lag) in receiving the data with the local machine time. Even if the local machine clock is not synchronized with the the exchange clock, the gap would be a FIXED interval. However, as can be seen below, the delay(lag) is increasing with every consecutive data and when the delay goes over 1 sec, 1 data stream goes missing. Note: I calculated the delay in the 2nd data(with the same secondstamp) as 500 milliseconds apart from the first one.
For BANKNIFTY option, 500 multiple strike (around the ATM spot) on Wednesday/Thursday; How many total number of data you receive at your server, is it 45000 or lower than that? What is the DELAY(lag) in receiving the data at your server? Do you see the same pattern in DELAY as in the image file, I attached? Have you matched the two data, one that you receive from the exchange at your server and the other by a local machine that is connected through WebSocket over the internet, using the code posted in https://pypi.org/project/kiteconnect/ ? How much is the increase in the 'delay'(lag) in this case (on an average, in terms of percentage)?