https://github.com/avivharuzi/ws-example
WebSocket example project using Node.js and Angular
https://github.com/avivharuzi/ws-example
angualr nodejs nx typescipt websocket
Last synced: 2 months ago
JSON representation
WebSocket example project using Node.js and Angular
- Host: GitHub
- URL: https://github.com/avivharuzi/ws-example
- Owner: avivharuzi
- Created: 2021-08-21T14:42:16.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-10-13T19:20:07.000Z (over 4 years ago)
- Last Synced: 2025-03-05T04:43:11.176Z (over 1 year ago)
- Topics: angualr, nodejs, nx, typescipt, websocket
- Language: TypeScript
- Homepage:
- Size: 405 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ws-example
WebSocket example project using `WebSocket` in Node.js and Angular with RxJS
`webSocket` function.
The project contain a simple chat application which everyone who coming to
the webpage gets generated random username and can start messaging with
other active users.
## Prerequisites
- Node.js (>= 12 required)
- npm package manager (>= 6 required)
## Run Local
First install npm packages.
```shell
npm i
```
Run ws-api WebSocket chat API
will run on port 8080 (**ws://localhost:8080**)
```shell
npm run start:ws-api
```
Run ws-example Angular web app
```shell
npm run start:ws-example
```
# License
[MIT](LICENSE)