Gathering detailed insights and metrics for isomorphic-ws
Gathering detailed insights and metrics for isomorphic-ws
Gathering detailed insights and metrics for isomorphic-ws
Gathering detailed insights and metrics for isomorphic-ws
Isomorphic implementation of WebSocket (https://www.npmjs.com/package/ws)
npm install isomorphic-ws
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
397 Stars
33 Commits
44 Forks
8 Watching
5 Branches
8 Contributors
Updated on 19 Nov 2024
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-9.7%
1,238,915
Compared to previous day
Last week
2.3%
7,054,264
Compared to previous week
Last month
6.2%
29,566,806
Compared to previous month
Last year
20.9%
299,095,727
Compared to previous year
1
Isomorphic implementation of WebSocket.
It uses:
Before using this module you should know that
ws
is not perfectly API compatible with
WebSocket,
you should always test your code against both Node and browsers.
Some major differences:
Server
implementation in browsersoptions
argument in browsersYou need to install both this package and ws:
> npm i isomorphic-ws ws
Then just require this package:
1const WebSocket = require('isomorphic-ws'); 2 3const ws = new WebSocket('wss://websocket-echo.com/'); 4 5ws.onopen = function open() { 6 console.log('connected'); 7 ws.send(Date.now()); 8}; 9 10ws.onclose = function close() { 11 console.log('disconnected'); 12}; 13 14ws.onmessage = function incoming(data) { 15 console.log(`Roundtrip time: ${Date.now() - data.data} ms`); 16 17 setTimeout(function timeout() { 18 ws.send(Date.now()); 19 }, 500); 20};
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
5 existing vulnerabilities detected
Details
Reason
Found 10/25 approved changesets -- score normalized to 4
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
Score
Last Scanned on 2024-11-25
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