- Microsoft Azure Subscription
- Node.js version 8.x or later
- VSCode / an IDE
- Active Event Hubs namespace and Event Hub. Learn how
- Active Azure storage account and blob container
Run the following command in a Terminal window pointing to the directory of this project:
npm installSetup the .env file with your own connection strings, names, etc based on your own Event Hubs and Azure Storage configuration. Omit any quotations.
In one terminal window, start the script to listen to and receive the events:
node receive.jsIn another terminal window, start the script to send the events:
node send.jsYou should see the events logged out in the console on the receiving end.
https://docs.microsoft.com/en-us/azure/event-hubs/get-started-node-send-v2