diff --git a/index.html b/index.html index d6afa53..5feaef1 100644 --- a/index.html +++ b/index.html @@ -9,8 +9,13 @@ servers: [ 'wss://steemd.steemit.com', 'wss://steemd.steemitdev.com', - 'wss://gtg.steem.house:8090', + 'wss://steemd-int.steemit.com', + 'wss://steemd.steemitstage.com', + 'wss://gtg.steem.house:8090', 'wss://seed.bitcoiner.me', + 'wss://steemd.minnowsupportproject.org', + 'wss://steemd.privex.io', + 'wss://rpc.steemliberator.com', 'wss://this.piston.rocks', 'wss://node.steem.ws', ] @@ -19,7 +24,7 @@ var states = {}; function output(inp) { - document.getElementById('log').appendChild(document.createElement('pre')).innerHTML = inp; + document.getElementById('log').appendChild(document.createElement('pre')).innerHTML = inp; } function clear_log() { @@ -27,26 +32,26 @@ } window.onload = function() { - output('connecting...') - remote.connect(function(){ - output('connected.') - }); - - remote.servers.forEach(function (s) { - states[s._url] = s._state; - s.on('state', function (state) { - states[s._url] = state; - }) - s.on('properties', function (p) { - states[s._url] = [p.last_irreversible_block_num, p.head_block_number].join('/'); - }) + output('connecting...') + remote.connect(function() { + output('connected.') + }); + + remote.servers.forEach(function (s) { + states[s._url] = s._state; + s.on('state', function (state) { + states[s._url] = state; + }) + s.on('properties', function (p) { + states[s._url] = [p.last_irreversible_block_num, p.head_block_number].join('/'); }) + }) + output(JSON.stringify(states, null, ' ')); + var timer = setInterval(function () { + clear_log(); output(JSON.stringify(states, null, ' ')); - var timer = setInterval(function () { - clear_log(); - output(JSON.stringify(states, null, ' ')); - }, 1000 * 3) + }, 1000 * 3) } @@ -54,6 +59,6 @@

Steem Servers

server_url: last_irreversible_block / head_block
============================================================= -
+
- \ No newline at end of file +