build this image as
"docker build -t wsapp ."
next run
docker-compose up
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