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.
eventsd-client
Advanced tools
#eventsd-client
EventsD client library for receiving events that are sent to an EventsD service.
Clients like opstail can be built using this client library.
npm install --save eventsd-client
Note: Requires Node.js version >= 4.2.2
const Client = require('eventsd-client');
let options = {
keys: [
'event.*.env.production.#',
'event.*.env.staging.#',
{
routingKey: 'event.*.env.qa.#'
},
{
routingKey: 'event.*.env.dev.#',
id: 'dev-events'
}
]
};
let client = new Client(options);
client.on('event', function (event) {
// received an event
// do something with it
console.log(event);
});
client.start();
// 'connect' event already fired
client.addKey('event.test.#');
client.addKey(['event.test1.#', 'event.test2.#']);
client.removeKey('event.test.#');
client.removeKey(['event.test1.#', 'event.test2.#']);
// Default Client Options
const defaultOptions = {
host: '127.0.0.1',
port: 8151,
keys: [],
ssl: {
enable: false
}
};
host
: the hostname/IP address of the EventsD server to connect toport
: the port number that the EventsD server accepts client connections onkeys
: an array of event routing key patterns to bind to (this determines which events this client instance will receive)ssl
:
enable
: use SSL to connect to the EventsD serverEventsD Server v2.1.0+
Version 2.1.0+ of the eventsd-server allows clients to share an event stream.
To use this feature, provide the following object as your key (instead of a string):
{
routingKey: 'event.test.#',
id: 'test-events'
}
The important field here is the id
field.
If an id
is provided in the key
object, then all clients with the same routingKey
and id
will share the same event stream (this acts like load balancing/distribution).
The DEBUG
environment variable can be used to see verbose logs from the client.
DEBUG=eventsd-client
npm test
NOTE:
A local RabbitMQ server is REQUIRED to run the tests.
FAQs
client library for streaming events from an eventsd server
The npm package eventsd-client receives a total of 3 weekly downloads. As such, eventsd-client popularity was classified as not popular.
We found that eventsd-client demonstrated a not healthy version release cadence and project activity because the last version was released 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
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.