/asyncapi-websockets-example

An example demoing how to use AsyncAPI and WebSockets

Primary LanguageJavaScript

WebSockets echo server

Project generated using the AsyncAPI generator nodejs-ws template.

Usage

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.

Tweaking the number of times a message is echoed

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.