How to use the web3-core-helpers.errors.ConnectionTimeout function in web3-core-helpers

To help you get started, we’ve selected a few web3-core-helpers 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 MCROEngineering / zoom / test / web3 / WsProviderCache.js View on Github external
setTimeout(function () {
                if (othis.responseCallbacks[id]) {
                    othis.responseCallbacks[id](errors.ConnectionTimeout(othis.customTimeout));
                    delete othis.responseCallbacks[id];
                }
            }, this.customTimeout);
        }
github MCROEngineering / zoom / test / web3 / HttpProviderCache.js View on Github external
request.ontimeout = function () {
            othis.connected = false;
            callback(errors.ConnectionTimeout(_this.timeout));
        };
        try {
github MCROEngineering / zoom / test / web3 / HttpProviderCache.ts View on Github external
request.ontimeout = () => {
            othis.connected = false;
            callback(errors.ConnectionTimeout(this.timeout));
        };
github MCROEngineering / zoom / test / web3 / WsProviderCache.ts View on Github external
setTimeout( () => {
                if (othis.responseCallbacks[id]) {
                    othis.responseCallbacks[id](errors.ConnectionTimeout(othis.customTimeout));
                    delete othis.responseCallbacks[id];
                }
            }, this.customTimeout);
        }
github MCROEngineering / zoom / dist / lib / utils / WsProvider.js View on Github external
setTimeout(function () {
                if (othis.responseCallbacks[id]) {
                    othis.responseCallbacks[id](errors.ConnectionTimeout(othis.customTimeout));
                    delete othis.responseCallbacks[id];
                }
            }, this.customTimeout);
        }
github MCROEngineering / zoom / src / utils / WsProvider.ts View on Github external
setTimeout( () => {
                if (othis.responseCallbacks[id]) {
                    othis.responseCallbacks[id](errors.ConnectionTimeout(othis.customTimeout));
                    delete othis.responseCallbacks[id];
                }
            }, this.customTimeout);
        }
github ethereum / web3.js / packages / web3-providers-ws / src / index.js View on Github external
setTimeout(function () {
            if (_this.responseCallbacks[id]) {
                _this.responseCallbacks[id](errors.ConnectionTimeout(_this._customTimeout));
                delete _this.responseCallbacks[id];
            }
        }, this._customTimeout);
    }
github ethereum / web3.js / packages / web3-providers-http / src / index.js View on Github external
request.ontimeout = function() {
        _this.connected = false;
        callback(errors.ConnectionTimeout(this.timeout));
    };
github ninabreznik / voting-ethereum-contract / node_modules / web3-providers-ws / src / index.js View on Github external
setTimeout(function () {
            if (_this.responseCallbacks[id]) {
                _this.responseCallbacks[id](errors.ConnectionTimeout(_this._customTimeout));
                delete _this.responseCallbacks[id];
            }
        }, this._customTimeout);
    }
github MCROEngineering / zoom / src / utils / HttpProvider.ts View on Github external
request.ontimeout = () => {
            othis.connected = false;
            callback(errors.ConnectionTimeout(this.timeout));
        };