Gathering detailed insights and metrics for msgpack-rpc-lite
Gathering detailed insights and metrics for msgpack-rpc-lite
Gathering detailed insights and metrics for msgpack-rpc-lite
Gathering detailed insights and metrics for msgpack-rpc-lite
npm install msgpack-rpc-lite
Typescript
Module System
Node Version
NPM Version
TypeScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
5 Stars
78 Commits
1 Forks
1 Watchers
7 Branches
2 Contributors
Updated on Jun 03, 2024
Latest Version
1.0.2
Package Id
msgpack-rpc-lite@1.0.2
Unpacked Size
48.08 kB
Size
13.01 kB
File Count
16
NPM Version
5.6.0
Node Version
8.9.4
Cumulative downloads
Total Downloads
Implementation of MessagePack-RPC with msgpack-lite
createServer([serverOptions][, codecOptions])
Creates a new MessagePack-RPC server.
serverOptions
<Object> See net.createServer([options][, connectionListener])codecOptions
<Object>
encode
See Custom Codec Optionsdecode
See Custom Codec OptionsServer event: method
Emitted when a new connection is made.
null
as the first argument and response parameters as the second argument.createClient(port[, host][, timeout][, codecOptions])
Initiates a MessagePack-RPC client.
port
<number> Port the socket should connect to.host
<string> Host the socket should connect to. Default: 'localhost'
timeout
<number> Sets the socket to timeout after timeout milliseconds of inactivity on the socket. If timeout is 0, then the existing idle timeout is disabled. Default: 0
codecOptions
<Object>
encode
See Custom Codec Optionsdecode
See Custom Codec Optionsclient.request(method[, ...args])
method
<string>client.notify(method[, ...args])
method
<string>Server
1const rpc = require('msgpack-rpc-lite'); 2const server = rpc.createServer().on('say', (params, callback) => { 3 const [ message ] = params; 4 callback(null, `hello ${ message }`); 5}); 6server.listen(9199);
Client
1const rpc = require('msgpack-rpc-lite'); 2 3const client = rpc.createClient(9199, 'localhost'); 4client.request('say', [ 'world' ]).then(([ response ]) => { 5 console.log(response); // hello world 6})
Set true
to useraw
of encode
/decode
of Codec-options.
1const codecOptions = { encode: { useraw: true }, decode: { useraw: true } }; 2 3const client = rpc.createClient(9199, 'localhost', 0, codecOptions);
See also:
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/26 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
40 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreLast Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year