binance-futures-connector-java icon indicating copy to clipboard operation
binance-futures-connector-java copied to clipboard

WebSocket onFailure Why not return the connection information at that time

Open disciplinary opened this issue 1 year ago • 1 comments

Uploading image.png… WebSocketConnection.onFailure,

 @Override
    public void onFailure(WebSocket ws, Throwable t, Response response) {
        logger.error("[Connection {}] Failure", connectionId, t);
// Wouldn't it be better to just return null and return the connectionId
        onFailureCallback.onReceive(null);
    }

If one of the multiple subscriptions is disconnected, how do you retry without knowing the current subscription information Or throw the exception out

disciplinary avatar Apr 19 '23 12:04 disciplinary