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.
- Node.js (>= 12 required)
- npm package manager (>= 6 required)
First install npm packages.
npm i
Run ws-api WebSocket chat API
will run on port 8080 (ws://localhost:8080)
npm run start:ws-api
Run ws-example Angular web app
npm run start:ws-example