Project generated using the AsyncAPI generator nodejs-ws
template.
Install dependencies:
npm install
Start the server:
sudo npm start
sudo required to listen on port 80
Open the file index.html
file with a browser, and follow the instructions there.
If you want to change the number of times a message is echoed, go edit the index.html
and change the number on the following line:
const times = 4;
Refresh to see the difference.