@hyperswarm/rpc
Advanced tools
Comparing version 3.2.0 to 3.2.1
@@ -180,2 +180,3 @@ const EventEmitter = require('events') | ||
this._stream = this._dht.connect(publicKey, { nodes, keyPair }) | ||
this._stream.setKeepAlive(5000) | ||
@@ -287,2 +288,3 @@ this._rpc = new ProtomuxRPC(this._stream, { | ||
stream.userData = rpc.mux | ||
stream.setKeepAlive(5000) | ||
@@ -289,0 +291,0 @@ this._connections.add(rpc) |
{ | ||
"name": "@hyperswarm/rpc", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"description": "RPC over the Hyperswarm DHT", | ||
@@ -14,10 +14,10 @@ "main": "index.js", | ||
"type": "git", | ||
"url": "git+https://github.com/hyperswarm/rpc.git" | ||
"url": "git+https://github.com/holepunchto/rpc.git" | ||
}, | ||
"author": "Kasper Isager Dalsgarð <kasper@funktionel.co>", | ||
"license": "ISC", | ||
"license": "Apache-2.0", | ||
"bugs": { | ||
"url": "https://github.com/hyperswarm/rpc/issues" | ||
"url": "https://github.com/holepunchto/rpc/issues" | ||
}, | ||
"homepage": "https://github.com/hyperswarm/rpc#readme", | ||
"homepage": "https://github.com/holepunchto/rpc#readme", | ||
"dependencies": { | ||
@@ -24,0 +24,0 @@ "b4a": "^1.6.4", |
@@ -165,2 +165,4 @@ # Hyperswarm RPC | ||
Note that `rpc.stream` is a [`HyperswarmSecretStream`](https://github.com/holepunchto/hyperswarm-secret-stream) instance, from which you can get information about the connection. For example, `rpc.stream.remotePublicKey` returns the public key of the initiator of the request. | ||
Only a single handler may be active for any given method; any previous handler is overwritten when registering a new one. | ||
@@ -213,2 +215,2 @@ | ||
ISC | ||
Apache-2.0 |
Sorry, the diff of this file is not supported yet
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
25253
277
0
0
215