Eventing framework module
REST an event to the eventing microservice, which adds the event to an event log and then publishes the event for consumption.
``javascript`
const response = await client.event(context, documentId, routingKey, message);
Arguments:
- context - See context objectlog
- 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
`javascript``
npm run test