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

https://github.com/sujay2306/ws-live-chat

Scaling Websockets with Redis, HAProxy and Node JS to Build highly scalable Group Chat-application
https://github.com/sujay2306/ws-live-chat

docker docker-compose docker-container ha-proxy nodejs pub-sub redis websockets

Last synced: about 2 months ago
JSON representation

Scaling Websockets with Redis, HAProxy and Node JS to Build highly scalable Group Chat-application

Awesome Lists containing this project

README

          

# How it works

## Installation

build this image as

```bash
"docker build -t wsapp ."
```
next run
```bash
docker-compose up
```
## Usage
open a browser console and type this
```bash
let ws = new WebSocket("ws://localhost:8080");
ws.onmessage = message => console.log(`Received: ${message.data}`);
ws.send("Hello! I'm client")
```
open multiple console windows to simulate multiple clients

## License

[MIT](https://choosealicense.com/licenses/mit/)