An open API service indexing awesome lists of open source software.

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

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)