Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Realtime inter-process EventEmitters what?
bolt intercepts EventEmitter API calls and shares them between processes.
npm install bolt
Bring it in like this:
var mesh = require('bolt').connect();
And then you can do things like this in one process:
mesh.emit('hello');
...and in another process:
mesh.on('hello', function(){
console.log('world');
});
To run the demo, you must have bolt-server running:
sudo node mesh
node example
node example2
node example3
Sets flag to request name from server. If the name is available, the server will allow it.
var mesh = require('bolt').name('foo').connect();
Returns an mesh object, which acts as an analog of an EventEmitter.
Options accepts host and port arguments and defaults to:
{
host: '127.0.0.1',
port: 1234
}
Emit an event to all nodes in the mesh, with JSON, string or integer as data.
Watch for an event from self or the mesh. You can get the data from callback(data)
(The MIT License)
Copyright (c) 2011 Cam Pedersen cam@onswipe.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
> Super-powered JavaScript project management
The npm package bolt receives a total of 1,160 weekly downloads. As such, bolt popularity was classified as popular.
We found that bolt demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.