Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
websocket-multiplex-client
Advanced tools
webSocket-multiplex-client is a nodeJs wrapper on client component of Websocket-multiplex. This helps for writing full end-to-end unit test cases in nodejs
Its a NodeJs wrapper on client code for websocket-multiplex. It helps you to do full end to end testing on websocket-multiplexing.
Below is an sample on how to connect to a sockjs server from code, establish a channel connection and send data.
var sockjsClient = new sockjs_client("http://127.0.0.1:8088/multiplex",
null,
{ rtt: 201 });
sockjsClient.onopen = function() {
//Create youre multiplex client
var client = new multiplex_client(sockjsClient);
//Register the channel
var mychannel_client = client.channel('mychannel');
mychannel_client.onmessage = function(msg){
console.log("Received message", msg);
done();
};
//Send message to server on the channel
setTimeout(function() {
mychannel_client.send('Hi');
}, 100);
};
sockjsClient.onclose = function() {
View test.js for complete example on how to use the code.
Run tests using mocha
mocha test.js
FAQs
webSocket-multiplex-client is a nodeJs wrapper on client component of Websocket-multiplex. This helps for writing full end-to-end unit test cases in nodejs
The npm package websocket-multiplex-client receives a total of 2 weekly downloads. As such, websocket-multiplex-client popularity was classified as not popular.
We found that websocket-multiplex-client 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.