Experiencing no messages from user stream without errors

Sometimes i stopping recieve messages from user stream. No errors or other messages from user stream before issue appears. POST on listenKey working normal no errors also ther correct listen key in response from request. I noticed that issue accured when position completly closed with profit on limit order i checked my code many times for any deadlocks but all is good. Also i was try to reproduce this issue with testnet many times and all ok but in live trading it’s appears many times without any correlations with time alive of user stream

Without sharing reproducible steps, it’s hard to understand where could be the cause.
Please double check your code to make sure it’s not failing somewhere in the configuration or code, some checks:

  • You’re indeed subscribing to live (production)'s listenKey and the connection is open;
  • You’re able to receive other updates from the websocket that’s related with account/order;
  • There’s no processing with the received websocket events that could accidentally exclude out the position being closed event.
  • Use websocat command line tool websocat -v "wss://fstream.binance.com/ws/listenkey" | jq '.' and see if you can get the event from this method.

I checked so many times all those steps but can’t realize where i’m mistaken, partial code of websocket realization there “namespace BinanceWebSockets { class BinanceWebSocket { pub - Pastebin.com