I also fully tried this method by implementing Celery and Redis server in my application and now it's perfectly streaming after getting tick in one thread and performing other tasks in another thread.
The thing is sir after streaming for more than 2-3hrs continuously I'm again getting the same connection error : 1006 very repeatedly but after 4-5 seconds again it's getting reconnected and streaming goes on .
After streaming for more than 2-3hrs this connection error is happening a lot of times and for sure I'm having a lot of data lags and inconsistency in my data.
So sir is there any permanent solution to this or any API calls through which i can keep on reconnecting to the kite server without any connection error : 1006 while full day streaming.
Any ideas regarding this would be very much appreciated sir .