Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

synapsis

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

synapsis - npm Package Compare versions

Comparing version 0.6.0 to 0.6.1

test/start-stop.mocha.js

2

package.json
{
"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'));

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc