Skip to content
Snippets Groups Projects
Commit 54c2fda7 authored by Jason Salyers's avatar Jason Salyers
Browse files

[JES] Ok. Constructor can see the options, but my error handler cant. Try adjusting setOptions...

parent 7ec2814f
No related branches found
No related tags found
2 merge requests!2Fail Over Capability,!1Automatic Fail Over
{ {
"name": "hive-js-dev", "name": "hive-js-dev",
"version": "0.0.7", "version": "0.0.8",
"description": "Steem.js the JavaScript API for Steem blockchain", "description": "Steem.js the JavaScript API for Steem blockchain",
"main": "lib/index.js", "main": "lib/index.js",
"scripts": { "scripts": {
......
...@@ -191,6 +191,10 @@ class Steem extends EventEmitter { ...@@ -191,6 +191,10 @@ class Steem extends EventEmitter {
{ {
config.set( 'address_prefix', options.useTestNet ? 'TST' : 'STM' ) config.set( 'address_prefix', options.useTestNet ? 'TST' : 'STM' )
} }
if (options.hasOwnProperty('failover_threshold'))
config.set('failover_threshold', options.failover_threshold);
if (options.hasOwnProperty('alternative_api_endpoints'))
config.set('alternative_api_endpoints', options.alternative_api_endpoints);
} }
setWebSocket(url) { setWebSocket(url) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment