Multithreading error

Saheb
I have written an algo that uses multithreading to get tick data via weksocket and then perform computations on it in diffrent threads. While doing so, the websocket connection keeps getting disconnected every 8-10 seconds. Is there any other efficient way to use weksocket data so that the connection remains stable.
I am attaching code snippet and error that i am getting.
Tagged:
  • rakeshr
    @Saheb
    In most cases, a multi-threaded setup should be enough. But, if you are still facing dis-connection, we can try the Queue method flow, as explained in this thread.
Sign In or Register to comment.