binance-exchange / binance-java-api

binance-java-api is a lightweight Java library for the Binance API, supporting synchronous and asynchronous requests, as well as event streaming using WebSockets.
MIT License
831 stars 628 forks source link

Websocket - EOFException #373

Closed bavodaniels closed 3 years ago

bavodaniels commented 3 years ago

I'm have the following code

`wsClient.onAllBookTickersEvent(new BinanceApiCallback() { @Override public void onResponse(BookTickerEvent bookTickerEvent) { System.out.println(bookTickerEvent.getSymbol()); }

        @Override
        public void onFailure(Throwable cause) {
            System.out.println("Websocket error, " + cause);

        }
    });`

and after a while i get a EOFException (read somewhere around 1 minute) any idea what this could be?

cheeringsoul commented 2 years ago

i have the same question, how did you solved it ?