- This project uses the Gorilla WebSocket library.
- Broadcast the message to all connected clients.
- The websocket client can connect to the server, send and receive messages.
- This code requires a working Go development environment.
- Then clone this repo with:
git clone https://github.com/lucaslopesx/websocket-server.git
- Change to the project directory:
cd websocket-server
- go to the directory and run:
go run server.go
- Open a web browser and visit:
http://localhost:8080/client