binance-futures-connector-java
binance-futures-connector-java copied to clipboard
WebSocket onFailure Why not return the connection information at that time
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