
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
@todojs/jsrpc
Advanced tools
Simple, lightly and powerful Javascript Remote Procedure Calling (jsRPC) using jsonRPC over HTTP.
Simple, lightly and powerful Javascript Remote Procedure Calling (jsRPC) using jsonRPC over HTTP.
This library is installed with:
npm install @todojs/jsrpc --save
This library has two method:
Create a client stub than replace the original objet with methods.
url
(string) server address, ie, ´http://myserver.com/`name
(string) object name as reference, ie, Arithmetic
method
(array of string) list of method names [optional]Return a new Proxy object.
Example:
const stubify = require('@todojs/jsrpc/stubify');
const stub = stubify (
"http://localhost:9000",
'arithmetic',
[
'addition',
'subtraction',
'multiplication',
'division'
]);
Create a server skeleton than recibe call by HTTP with jsonRPC message format, call to original method and return the result.
name
(string) object name as reference, ie, Arithmetic
obj
(object) the original object with methods.Example:
const skeletonify = require ('@todojs/jsrpc/skeletonify');
skeletonify ('arithmetic', Arithmetic);
FAQs
Simple, lightly and powerful Javascript Remote Procedure Calling (jsRPC) using jsonRPC over HTTP.
We found that @todojs/jsrpc demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.