How to use the @jenkins-cd/blueocean-core-js.sseService.removeHandler function in @jenkins-cd/blueocean-core-js

To help you get started, we’ve selected a few @jenkins-cd/blueocean-core-js examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jenkinsci / blueocean-plugin / blueocean-pipeline-editor / src / main / js / SaveApi.js View on Github external
_cleanup(sseId, timeoutId, onComplete, onError, err) {
        sseService.removeHandler(sseId);
        clearTimeout(timeoutId);
        loadingIndicator.hide();
        if (err && onError) {
            onError(err);
        } else {
            onComplete();
        }
    }
github jenkinsci / blueocean-plugin / blueocean-dashboard / src / main / js / creation / github / GithubFlowManager.js View on Github external
_cleanupListeners() {
        if (this._sseSubscribeId || this._sseTimeoutId) {
            LOGGER.debug('cleaning up existing SSE listeners');
        }

        if (this._sseSubscribeId) {
            sseService.removeHandler(this._sseSubscribeId);
            this._sseSubscribeId = null;
        }
        if (this._sseTimeoutId) {
            clearTimeout(this._sseTimeoutId);
            this._sseTimeoutId = null;
        }
    }
github jenkinsci / blueocean-plugin / blueocean-dashboard / src / main / js / creation / bitbucket / cloud / BbCloudFlowManager.js View on Github external
_cleanupListeners() {
        if (this._sseSubscribeId || this._sseTimeoutId) {
            LOGGER.debug('cleaning up existing SSE listeners');
        }

        if (this._sseSubscribeId) {
            sseService.removeHandler(this._sseSubscribeId);
            this._sseSubscribeId = null;
        }
        if (this._sseTimeoutId) {
            clearTimeout(this._sseTimeoutId);
            this._sseTimeoutId = null;
        }
    }
github jenkinsci / blueocean-plugin / blueocean-dashboard / src / main / js / creation / git / GitFlowManager.jsx View on Github external
_cleanupListeners() {
        if (this._sseSubscribeId) {
            sseService.removeHandler(this._sseSubscribeId);
            this._sseSubscribeId = null;
        }
    }