So to briefly tell you about my set up, I have 4 websocket subscriptions running in 4 separate tokio threads which handle streams from different sources. Everything works completely fine, I have a 5th thread set up to connect to another web socket and send out requests using ws_client.request()
.
Upon calling ws_client.request(method, params)
– every other websocket subscription in the other threads hangs and does not get any further messages. No disconnections or error messages happen, they just continues to wait for the next message which never comes.
I Have never seen this before working with other libs, I should be able to have multiple ws connections running in threads without conflicting. Does anyone know whats going on here? I have debugged it, it is definitely happening as soon as I send a message through .request()
– the connection is always open and handled as soon as the program launches and does not cause any issues, it is only when we send a message does it hang all the other sockets.
Thank you.