add new tests for new reconnect feature
This commit is contained in:
parent
fe177eaba2
commit
86016de19d
2 changed files with 98 additions and 56 deletions
|
|
@ -7,8 +7,14 @@ function Network(opts) {
|
|||
|
||||
Network.parent=EventEmitter;
|
||||
|
||||
Network.prototype.start = function(openCallback, opts) {
|
||||
Network.prototype.start = function(opts, cb) {
|
||||
// start! :D
|
||||
this.peer = {
|
||||
options: {
|
||||
token: "asd"
|
||||
}
|
||||
};
|
||||
if (cb) cb();
|
||||
};
|
||||
|
||||
Network.prototype.send = function(peerIds, data, cb) {
|
||||
|
|
@ -24,4 +30,16 @@ Network.prototype.disconnect = function(cb) {
|
|||
// disconect :c
|
||||
};
|
||||
|
||||
Network.prototype.lockIncommingConnections = function() {
|
||||
|
||||
};
|
||||
|
||||
Network.prototype.getPeer = function() {
|
||||
};
|
||||
Network.prototype.connectToCopayers = function(cps) {
|
||||
};
|
||||
Network.prototype.isOnline = function() {
|
||||
return true;
|
||||
};
|
||||
|
||||
module.exports = require('soop')(Network);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue