/ws-live-chat

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

Primary LanguageJavaScript

How it works

Installation

build this image as

"docker build -t wsapp ."

next run

docker-compose up

Usage

open a browser console and type this

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