Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
web3-core-subscriptions
Advanced tools
Manages web3 subscriptions. This is an internal package.
Weekly downloads
Readme
This is a sub package of web3.js
The subscriptions package used within some web3.js packages. Please read the documentation for more.
npm install web3-core-subscriptions
Build running the following in the web3.js repository:
npm run-script build-all
Then include dist/web3-core-subscriptions.js
in your html file.
This will expose the Web3Subscriptions
object on the window object.
// in node.js
var Web3Subscriptions = require('web3-core-subscriptions');
var sub = new Web3Subscriptions({
name: 'subscribe',
type: 'eth',
subscriptions: {
'newBlockHeaders': {
subscriptionName: 'newHeads',
params: 0,
outputFormatter: formatters.outputBlockFormatter
},
'pendingTransactions': {
params: 0,
outputFormatter: formatters.outputTransactionFormatter
}
}
});
sub.attachToObject(myCoolLib);
myCoolLib.subscribe('newBlockHeaders', function(){ ... });
FAQs
Manages web3 subscriptions. This is an internal package.
The npm package web3-core-subscriptions receives a total of 330,086 weekly downloads. As such, web3-core-subscriptions popularity was classified as popular.
We found that web3-core-subscriptions demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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.
Security News
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.