Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fmvilas/asyncapi-websockets-example
An example demoing how to use AsyncAPI and WebSockets
https://github.com/fmvilas/asyncapi-websockets-example
Last synced: about 2 months ago
JSON representation
An example demoing how to use AsyncAPI and WebSockets
- Host: GitHub
- URL: https://github.com/fmvilas/asyncapi-websockets-example
- Owner: fmvilas
- Created: 2019-08-29T11:52:59.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T03:42:18.000Z (about 2 years ago)
- Last Synced: 2024-10-11T03:44:36.086Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 54.7 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WebSockets echo server
Project generated using the [AsyncAPI generator](https://github.com/asyncapi/generator) `nodejs-ws` template.
## Usage
Install dependencies:
```
npm install
```Start the server:
```
sudo npm start
```
> sudo required to listen on port 80Open 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:
```js
const times = 4;
```Refresh to see the difference.