@Override
    public void onWebSocketError(Throwable error) {
        LOGGER.error("WebSocket client get error.");
        if(LOGGER.isTraceEnabled()){
            LOGGER.trace("WebSocket client get error.", error);
        }

        clientConnection.onSocketError();
        if(! connected){
            synchronized(sessionLock){
                sessionLock.notifyAll();
            }
        }
//        cleanup();
//        clientConnection.onSocketError();
    }
@ Override public void onWebSocketError ( Throwable error ) { LOGGER . error ( "WebSocket client get error." ) ; if ( LOGGER . isTraceEnabled ( ) ) { LOGGER . trace ( "WebSocket client get error." , error ) ; } clientConnection . onSocketError ( ) ; if ( ! connected ) { synchronized ( sessionLock ) { sessionLock . notifyAll ( ) ; } } }
{@inheritDoc}