Security News
Supply Chain Attack Detected in @solana/web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Modern XMPP in the browser, with a JSON API.
Stanza is a library for using modern XMPP in the browser, and it does that by exposing everything as JSON. Unless you insist, you have no need to ever see or touch any XML when using Stanza.
$ npm install stanza
git clone https://github.com/legastero/stanza.io.git
npm install
in the new stanza.io
directory.npm run build
to create dist/stanzaio.browser.js
.demo.html
in your browser.var client
).var XMPP = require('stanza');
var client = XMPP.createClient({
jid: 'echobot@example.com',
password: 'hunter2',
// If you have a .well-known/host-meta.json file for your
// domain, the connection transport config can be skipped.
transport: 'websocket',
wsURL: 'wss://example.com:5281/xmpp-websocket'
// (or `boshURL` if using 'bosh' as the transport)
});
client.on('session:started', function() {
client.getRoster();
client.sendPresence();
});
client.on('chat', function(msg) {
client.sendMessage({
to: msg.from,
body: 'You sent: ' + msg.body
});
});
client.connect();
MUC Room: discuss@stanzajs.org / Logs
If you like this, follow @lancestout on twitter.
FAQs
Modern XMPP in the browser, with a JSON API
The npm package stanza receives a total of 3,561 weekly downloads. As such, stanza popularity was classified as popular.
We found that stanza demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
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.