Gathering detailed insights and metrics for ty-vscode-ws-jsonrpc
Gathering detailed insights and metrics for ty-vscode-ws-jsonrpc
Gathering detailed insights and metrics for ty-vscode-ws-jsonrpc
Gathering detailed insights and metrics for ty-vscode-ws-jsonrpc
NPM module to implement communication between a jsonrpc client and server over WebSocket
npm install ty-vscode-ws-jsonrpc
Typescript
Module System
Node Version
NPM Version
72.5
Supply Chain
84.8
Quality
75.4
Maintenance
100
Vulnerability
100
License
TypeScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
54 Stars
36 Commits
29 Forks
8 Watchers
2 Branches
6 Contributors
Updated on Jun 25, 2025
Latest Version
0.4.0
Package Id
ty-vscode-ws-jsonrpc@0.4.0
Unpacked Size
45.97 kB
Size
10.14 kB
File Count
53
NPM Version
6.14.8
Node Version
14.9.0
Cumulative downloads
Total Downloads
Last 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
1
3
NPM module to implement communication between a jsonrpc client and server over WebSocket.
1import * as rpc from 'vscode-ws-jsonrpc'; 2 3const webSocket = new WebSocket('ws://www.example.com/socketserver'); 4rpc.listen({ 5 webSocket, 6 onConnection: (connection: rpc.MessageConnection) => { 7 const notification = new rpc.NotificationType<string, void>('testNotification'); 8 connection.listen(); 9 connection.sendNotification(notification, 'Hello World'); 10 } 11});
1import * as rpc from 'vscode-ws-jsonrpc'; 2 3const socket: rpc.IWebSocket; // open the web socket 4const reader = new rpc.WebSocketMessageReader(socket); 5const writer = new rpc.WebSocketMessageWriter(socket); 6const logger = new rpc.ConsoleLogger(); 7const connection = rpc.createMessageConnection(reader, writer, logger); 8const notification = new rpc.NotificationType<string, void>('testNotification'); 9connection.onNotification(notification, (param: string) => { 10 console.log(param); // This prints Hello World 11}); 12 13connection.listen();
1import * as rpc from 'vscode-ws-jsonrpc'; 2import * as server from 'vscode-ws-jsonrpc/lib/server'; 3 4const socket: rpc.IWebSocket; // open the web socket 5const reader = new rpc.WebSocketMessageReader(socket); 6const writer = new rpc.WebSocketMessageWriter(socket); 7const socketConnection = server.createConnection(reader, writer, () => socket.dispose()) 8const serverConnection = server.createServerProcess('Example', 'node', ['example.js']); 9server.forward(socketConnection, serverConnection, message => { 10 if (rpc.isNotificationMessage(message)) { 11 if (message.method === 'testNotification') { 12 // handle the test notification 13 } 14 } 15 return message; 16});
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
2 existing vulnerabilities detected
Details
Reason
Found 5/23 approved changesets -- score normalized to 2
Reason
project is archived
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
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 More