When I try to place an order using the JavaScript client, I get the above error mentioned in the title. Then the websocket disconnects and reconnects.
It's not recommended to block the kite ticker main thread, by performing any computation/API calls inside the same. This thread, explains more on this. Maybe you can consider using async for such calls.
Hi @rakeshr Thanks for the response. I'm actually using async for all my functions so it's a strange issue if it really is caused by the thread being blocked especially since I don't have any heavy computation happening inside those functions. Let me look further into this and share my findings here.