A simple TCP-based server for local communication. Allows multiple clients to connect and exchange messages within a local network or over the internet if hosted 😂
- Go (version 1.22 or later recommended)
- Clone repository
[email protected]:Shoetan/broadcast-server.git
- cd into the cloned repository
- Start the TCP server on a local address
go run main.go start server
- Connect a client to the TCP server
go run main.go connect server
- Stop the TCP server
ctrl + c
Below are the commands you can run after connecting to the TCP server.
- Send a message to the TCP server
1 <message>
- Disconnect from the TCP server
2