Security News
OpenJS: “XZ Utils Cyberattack Likely Not an Isolated Incident”
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.
web3-core-subscriptions
Advanced tools
Weekly downloads
Readme
tus]deps-image]deps-url
This is a sub-package of web3.js
This subscriptions package is 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 332,018 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
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.
Company News
Come meet the Socket team at BSidesSF and RSA! We're sponsoring several fun networking events and we would love to see you there.
Security News
OSI is starting a conversation aimed at removing the excuse of the SaaS loophole for companies navigating licensing and the complexities of doing business with open source.