Comparing version 0.6.0 to 0.6.1
{ | ||
"name": "synapsis", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "Automatic pub/sub over every possible network. It just works.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -19,13 +19,2 @@ | ||
this.socket_pool = new SocketPool(); | ||
this.command_swarm = Swarm({ | ||
dns : { | ||
server : [ | ||
'discovery1.publicbits.org', | ||
'discovery2.publicbits.org' | ||
], | ||
interval : 1000 | ||
}, | ||
dht : false | ||
}); | ||
} | ||
@@ -46,8 +35,21 @@ | ||
stop() { | ||
this.command_swarm.close(); | ||
stop(cb) { | ||
this.socket_pool.close(); | ||
this.command_swarm.leave(this.namespace.toString('hex')); | ||
this.command_swarm.close(cb); | ||
} | ||
start() { | ||
this.command_swarm = Swarm({ | ||
dns : { | ||
server : [ | ||
'discovery1.publicbits.org', | ||
'discovery2.publicbits.org' | ||
], | ||
interval : 1000 | ||
}, | ||
dht : false, | ||
utp : false | ||
}); | ||
this.command_swarm.listen(0); | ||
@@ -54,0 +56,0 @@ this.command_swarm.join(this.namespace.toString('hex')); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25121
12
794