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

@hyperswarm/rpc

Package Overview
Dependencies
Maintainers
3
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hyperswarm/rpc - npm Package Compare versions

Comparing version 3.2.0 to 3.2.1

2

index.js

@@ -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)

10

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

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