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
- Host: GitHub
- URL: https://github.com/sujay2306/ws-live-chat
- Owner: sujay2306
- Created: 2023-02-26T04:54:25.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-27T05:26:09.000Z (almost 3 years ago)
- Last Synced: 2025-06-06T10:14:28.248Z (12 months ago)
- Topics: docker, docker-compose, docker-container, ha-proxy, nodejs, pub-sub, redis, websockets
- Language: JavaScript
- Homepage:
- Size: 228 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
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/)