graphenejs-lib
Advanced tools
Comparing version 0.4.7 to 0.4.8
var {Apis} = require("graphenejs-ws"); | ||
var {ChainStore} = require("../lib"); | ||
Apis.instance("wss://bitshares.openledger.info/ws").init_promise.then((res) => { | ||
Apis.instance("wss://bitshares.openledger.info/ws", true).init_promise.then((res) => { | ||
console.log("connected to:", res[0].network); | ||
@@ -6,0 +6,0 @@ ChainStore.init().then(() => { |
@@ -7,3 +7,3 @@ var {Apis} = require("graphenejs-ws"); | ||
Apis.instance("wss://testnet.bitshares.eu/ws") | ||
Apis.instance("wss://testnet.bitshares.eu/ws", true) | ||
.init_promise.then((res) => { | ||
@@ -10,0 +10,0 @@ console.log("connected to:", res[0].network_name, "network"); |
{ | ||
"name": "graphenejs-lib", | ||
"version": "0.4.7", | ||
"version": "0.4.8", | ||
"description": "Pure JavaScript Bitshares/Graphene library for node.js and browsers.", | ||
"browser": { | ||
"websocket": false, | ||
"ws": false, | ||
"crypto": false | ||
@@ -52,3 +52,3 @@ }, | ||
"event-emitter": "^0.3.4", | ||
"graphenejs-ws": "^0.1.3", | ||
"graphenejs-ws": "^0.1.5", | ||
"immutable": "^3.7.6", | ||
@@ -55,0 +55,0 @@ "secure-random": "^1.1.1" |
@@ -61,3 +61,3 @@ # GrapheneJS (graphenejs-lib) | ||
Apis.instance("wss://bitshares.openledger.info/ws").init_promise.then((res) => { | ||
Apis.instance("wss://bitshares.openledger.info/ws", true).init_promise.then((res) => { | ||
console.log("connected to:", res[0].network); | ||
@@ -64,0 +64,0 @@ ChainStore.init().then(() => { |
@@ -11,3 +11,3 @@ var assert = require("assert"); | ||
before(function() { | ||
return Apis.instance("wss://bitshares.openledger.info/ws").init_promise.then(function (result) { | ||
return Apis.instance("wss://bitshares.openledger.info/ws", true).init_promise.then(function (result) { | ||
coreAsset = result[0].network.core_asset; | ||
@@ -14,0 +14,0 @@ ChainStore.init(); |
644828
Updatedgraphenejs-ws@^0.1.5