How to up?
-
Docker compose build
-
docker compose up
-
Now two separate websocket servers are up listening on 8081,8082
-
make connection to both using ws://localhost:8081,ws://localhost:8082
-
Send below set of messages to interact between two client
-
{ "action": "subscribe", "id": "123" }
-
{ "action": "message", "id": "123", "msg": "Hello, ws clients!" }
-
{ "action": "unsubscribe", "id": "123" }