class WebSocketClient extends org.java_websocket.client.WebSocketClient {

    @Override
    public void onError(Exception e) {
        log.error(String.format("WebSocket connection to {} failed with error", uri), e);
        listener.onError(e);
    }

    public  WebSocketClient(URI serverUri);
    public  WebSocketClient(URI serverUri, Map<String,String> httpHeaders);

}