Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@signalk/client
Advanced tools
$ npm install @signalk/client
Mdns is an optional dependency for doing automatic
discovery.
It is not relevant in browser environment, but Browserify will fail if you don't ignore or exclude it explicitly as in
--exclude mdns
. For Webpack you can declare it as an
external.
var SignalKClient = require('@signalk/client').Client;
var signalk = new SignalKClient;
var connection;
var thisCallback = function(msg) {
$.each(listenerList, function(i, obj) {
obj.onmessage(msg, connection);
});
};
function connectDelta(host, thisCallback, onConnect, onDisconnect) {
debug("Connecting to " + host);
// try mdns
connection = signalk.discoverAndConnect();
if(connection) {
return;
}
console.log("Could not use mdns, falling back to " + host);
connection = signalk.connectDelta(host, thisCallback,
function(skConnection) {
skConnection.subscribeAll();
onConnect();
},
function(skConnection) {
skConnection.close();
debug('Disconnected');
},
function(error) {
console.log(error)
},
'self'
);
}
FAQs
A Javascript SDK for Signal K clients. Provides various abstract interfaces for discovering (via optional mDNS) the Signal K server and communication via WebSocket & REST. Aims to implement all major APIs in the most recent Signal K version(s)
The npm package @signalk/client receives a total of 183 weekly downloads. As such, @signalk/client popularity was classified as not popular.
We found that @signalk/client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.