It looks like you're new here. If you want to get involved, click one of these buttons!
.Net API client
.Net / VBA / Excel (3rd party)
Algorithms and Strategies
Mobile and Desktop apps
Market data (WebSockets)
In this Discussion
Frequent error 1006 although program reconnects
Hello everyone,I'm frequently getting error 1006.My program does reconnect again and receives ticks as well but this error shows up every 30 seconds.Is it because of my internet connectivity?
You can refer to the FAQs
,I went through your link.None of the solutions in those links are working for me.The problem remains the same.please take a look and advice what is wrong.Thank you.
Screenshot from 2020-08-05 12-39-23.png
Note:ws.stop() in on_close is purposely placed for now,i'll remove it
In the 2nd screen-shot, we see you are still performing computation inside
method in the main thread. You shouldn't do that. Shift all computations to the second thread. You need to go in detail with
examples explained here
edited August 5
so the on_ticks method which you are referring to,there also i need to create helper method? Or should I just remove computation from that part?
What if i just place a "pass" there?
If that helper_method is processing and at that time if i receive tick will i get error?
No, in most cases, you won't. If you still get disconnection error, you need to use Queue way, as
Error resolved,Implemented Queue,thanks to
for sample Code.
My strategy is bit computationally expensive and hence i was getting this error.
After Implementing Queue my system seems to run cooler than before.
for quick response.
This discussion has been closed.