Skip to content

fmvilas/asyncapi-websockets-example

Repository files navigation

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.

About

An example demoing how to use AsyncAPI and WebSockets

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published