Websocket user data stream, My WebSocket connection will be disconnected after one minute

return websocketClient.listenUserStream(jsonListenKey.getString("listenKey"), ((event) -> {
            log.info("账户信息推送:[{}]", event);
            JSONObject eventJson = JSON.parseObject(event);
            switch (eventJson.getString("e")) {
                case "ORDER_TRADE_UPDATE" -> jsonObject.set(orderTradeUpdate(eventJson));
                case "ACCOUNT_UPDATE" -> jsonObject.set(accountUpdate(eventJson));
            }

        }));


java.io.EOFException: null
	at okio.RealBufferedSource.require(RealBufferedSource.kt:199)
	at okio.RealBufferedSource.readByte(RealBufferedSource.kt:209)
	at okhttp3.internal.ws.WebSocketReader.readHeader(WebSocketReader.kt:119)
	at okhttp3.internal.ws.WebSocketReader.processNextFrame(WebSocketReader.kt:102)
	at okhttp3.internal.ws.RealWebSocket.loopReader(RealWebSocket.kt:293)
	at okhttp3.internal.ws.RealWebSocket$connect$1.onResponse(RealWebSocket.kt:195)
	at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:833)

只有这一个websocket会自动断开,其他的websocket没问题

The exception you’re encountering is an EOFException (End of File Exception) in the context of reading from a RealBufferedSource in the WebSocketReader. This usually happens when the WebSocket connection is closed unexpectedly or there’s an issue with the underlying network connection.

You should debug and explore why your connection is not stable and handle the connection properly when it does close.

Thank you. I’ll check if the network is stable