# ows-nr-ownership-ingest

Receives events from nr ownership ingestion.
Relays them to a websocket connection for real time consumption by clients.

## Install

`nvm use && yarn`

## Run

Load up AWS dev account config and credentials so that they'll be used when the app starts.
And give your user the correct permissions to receive messages from:
https://sqs.us-east-1.amazonaws.com/437795906767/qa-ownership-events-queue

E.g. `awsume dev`

## Fake some events

Ensure you have an AWS profile called dev. Or change that bit of listOfSqsCommands.
What we want to do is iterate our list of commands, calling each one in turn. All it does is to send dummy events
onto our SQS queue. Auditor is subscribed to that queue, so will consume the messages, and send them to the websocket
connection.

```
    while read x; do  eval $x  && sleep 2; done < ./scripts/listOfSqsCommands.sh
```
