Comparing version 0.3.4 to 0.3.5
@@ -33,2 +33,6 @@ var WebSocket = require('ws'); | ||
this.isOpen = true; | ||
this.getApiByName('database_api', function() {}); | ||
this.getApiByName('login_api', function() {}); | ||
//this.getApiByName('follow_api', function() {}); | ||
this.getApiByName('network_broadcast_api', function() {}); | ||
callback(); | ||
@@ -60,3 +64,2 @@ }.bind(this)); | ||
Steem.send = function(api, data, callback) { | ||
data.id = data.id || 0; | ||
@@ -860,4 +863,7 @@ data.params = data.params || []; | ||
}, function(err, data) { | ||
if (iterator == data.id) callback(err, data.result); | ||
}); | ||
if (iterator == data.id) { | ||
this.apiIds[apiName] = data.result; | ||
callback(err, data.result); | ||
} | ||
}.bind(this)); | ||
}; | ||
@@ -864,0 +870,0 @@ |
{ | ||
"name": "steem", | ||
"version": "0.3.4", | ||
"version": "0.3.5", | ||
"description": "Steem.js the JavaScript API for Steem blockchain", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -24,7 +24,1 @@ var steem = require('./index'); | ||
}); | ||
steem.api.streamOperations(function(err, result) { | ||
if (!err && result[1].author == 'fabien') { | ||
console.log(result); | ||
} | ||
}); |
Sorry, the diff of this file is not supported yet
61099
11
1011