WebSocket keeps disconnecting with 1006 error during heavy trading

Hi,

Our WebSocket connection to User Data Stream keeps dropping during busy trading periods with error code 1006.

Setup:

  • Using: wss://fstream.binance.com/ws/{listenKey}
  • Listen key refreshed every 30s
  • Connection stable otherwise

What happens: We get flooded with TRADE_LITE messages (saw 996 in 250ms), then connection dies with “Cannot write to closing transport” error.

Timeline: This has been happening especially frequently over the past 3 days. Before that, we rarely saw this issue - maybe once a week at most. Now it’s multiple times per day during active trading.

Questions:

  1. Did something change on your end recently that could cause this?
  2. Does high message volume cause you to kill connections?
  3. Can we disable TRADE_LITE messages? We only care about ORDER_TRADE_UPDATE
  4. Any rate limits we should know about?
  5. How do other users handle this?

Example from logs:

996 TRADE_LITE messages → connection drops with 1006

Reconnecting works fine, but this keeps happening during active trading.

Any ideas what’s going on?

Thanks!