Go WebSocket Server
This is a WebSocket project written in Go using the Gorilla package, enabling real-time communication between a server and multiple clients.
Key Features
- Real-time bidirectional communication.
- Support for multiple simultaneous clients.
- Connection and message management.
Prerequisites
Installation
https://github.com/joaofilippe/go-websocket.git
cd go-webscoket
go mod tidy
Usage
To start the WebSocket server, run:
go run main.go
You can use a WebSocket client, such as websocat
, or Postman to test the connection.
Project Structure
.
├── models
│ └── message.go
├── codealike.json
├── go.mod
├── go.sum
└── main.go
Contributing
- Fork the repository.
- Create a new branch (
git checkout -b feature/MyFeature
).
- Commit your changes (
git commit -m 'Add new feature'
).
- Push to the branch (
git push origin feature/MyFeature
).
- Open a Pull Request.
License
Distributed under the MIT License. See LICENSE
for more information.