lucaslopesx / websocket-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Websocket Server and Client.

Basic implementation of a websocket server and client.

  • 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.

Running this code.

  • 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

About


Languages

Language:Go 69.9%Language:HTML 30.1%