exframe-eventing
v1.2.14
Published
Eventing framework module
Downloads
509
Readme
exframe Eventing Module
REST an event to the eventing microservice, which adds the event to an event log and then publishes the event for consumption.
const response = await client.event(context, documentId, routingKey, message);
Arguments:
context
- See context object- expects
log
- expects
documentId
- string The document id associated with the eventroutingKey
- string The routing key subscribers for the event to be routed tomessage
- object The event data to pass to the consumer of the event.options
- optional, object
Returns:
response
- The response from server
###Tests
npm run test