diff options
author | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-01-14 19:01:11 +0800 |
---|---|---|
committer | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-01-14 19:01:11 +0800 |
commit | 12bdb5f5509c205a7a868e02964ed25d10f4b000 (patch) | |
tree | a27f0a6f91434a5920719ed2209e524fe6982d19 /lib/providermanager.js | |
parent | 8d1f96cc0aa608c319a48af5a3c2397b694d5930 (diff) | |
download | go-tangerine-12bdb5f5509c205a7a868e02964ed25d10f4b000.tar go-tangerine-12bdb5f5509c205a7a868e02964ed25d10f4b000.tar.gz go-tangerine-12bdb5f5509c205a7a868e02964ed25d10f4b000.tar.bz2 go-tangerine-12bdb5f5509c205a7a868e02964ed25d10f4b000.tar.lz go-tangerine-12bdb5f5509c205a7a868e02964ed25d10f4b000.tar.xz go-tangerine-12bdb5f5509c205a7a868e02964ed25d10f4b000.tar.zst go-tangerine-12bdb5f5509c205a7a868e02964ed25d10f4b000.zip |
providers documentation
Diffstat (limited to 'lib/providermanager.js')
-rw-r--r-- | lib/providermanager.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/providermanager.js b/lib/providermanager.js index 28122cb42..00266154d 100644 --- a/lib/providermanager.js +++ b/lib/providermanager.js @@ -28,7 +28,15 @@ if (process.env.NODE_ENV !== 'build') { var web3 = require('./web3'); // jshint ignore:line } -/// Provider manager object prototype +/** + * Provider manager object prototype + * It's responsible for passing messages to providers + * If no provider is set it's responsible for queuing requests + * It's also responsible for polling the ethereum node for incoming messages + * Default poll timeout is 12 seconds + * If we are running ethereum.js inside ethereum browser, there are backend based tools responsible for polling, + * and provider manager polling mechanism is not used + */ var ProviderManager = function() { this.queued = []; this.polls = []; @@ -111,3 +119,4 @@ ProviderManager.prototype.stopPolling = function (pollId) { }; module.exports = ProviderManager; + |