I've been facing intermittent websocket disconnection issues multiple times today, the last one being at 02:17 PM. Also, I've observed that the Web socket gets disconnected when the system enters sleep mode. Could someone please guide me on this, so that I can proceed further. Attached are the screenshots of the error I'm getting for your reference.
Any help is really appreciated. Thanks a lot in advance
As mentioned in the above FAQs , i implemented my entire parsing & calculation part with in while true inside helper method , but still im facing same issue.Could u please give some overview on it
I could also figure out, if the processes inside while loop, on secondary thread where Ticks are processed, takes longer than the interval of Tick data received, then it causes connection to close and reconnect after the 'secondary process' is complete.
For e.g. saving a huge dataframe to disk takes more time than the tick time i.e. 0.25 seconds, if you remove this, the socket never breaks.
just posting if it helps anyone else, though am novice on this.
Sample "OnError" log: Websocket was working fine till 13 Dec 2021. Problem with wss://ws.kite.trade ?
For e.g. saving a huge dataframe to disk takes more time than the tick time i.e. 0.25 seconds, if you remove this, the socket never breaks.
just posting if it helps anyone else, though am novice on this.