hyperswarm
Advanced tools
Comparing version 2.0.4 to 2.0.5
{ | ||
"name": "hyperswarm", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "A distributed networking stack for connecting peers", | ||
@@ -5,0 +5,0 @@ "main": "swarm.js", |
@@ -138,2 +138,10 @@ # hyperswarm | ||
#### `swarm.on('disconnection', (socket, details) => {})` | ||
A connection has been dropped. | ||
#### `swarm.connections` | ||
A set of all the active connections. | ||
#### `swarm.on('peer', (peer) => {})` | ||
@@ -155,2 +163,2 @@ | ||
Emitted once a discovery cycle for a particular topic has completed. The topic can be identified by the `key` property of the emitted object. After this event the peer will wait for period of between 5 and 10 minutes before looking for new peers on that topic again. | ||
Emitted once a discovery cycle for a particular topic has completed. The topic can be identified by the `key` property of the emitted object. After this event the peer will wait for period of between 5 and 10 minutes before looking for new peers on that topic again. |
@@ -68,2 +68,3 @@ 'use strict' | ||
this.ephemeral = ephemeral !== false | ||
this.connections = network.sockets | ||
@@ -70,0 +71,0 @@ this[kQueue] = peerQueue(queue) |
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
74904
2353
163