https://github.com/pr4j3sh/udp
udp cli chat
https://github.com/pr4j3sh/udp
udp udp-client udp-server udp-socket
Last synced: over 1 year ago
JSON representation
udp cli chat
- Host: GitHub
- URL: https://github.com/pr4j3sh/udp
- Owner: pr4j3sh
- License: mit
- Created: 2024-10-09T01:23:15.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-12-08T13:11:56.000Z (over 1 year ago)
- Last Synced: 2025-01-26T17:34:15.040Z (over 1 year ago)
- Topics: udp, udp-client, udp-server, udp-socket
- Language: Ruby
- Homepage:
- Size: 212 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# UDP Chat App

This is a simple chat application built using Ruby and the UDP protocol. It allows users to send and receive messages over a network.
## Prerequisites
- [Ruby](https://www.ruby-lang.org/en/)
## Usage
1. **Start the Server**:
Open a terminal and run the server with the following command:
```bash
ruby server.rb
```
2. **Start the Client**:
Open another terminal and run the client with the following command:
```bash
ruby client.rb
```
3. **Chat**:
- In the client terminal, type the server `ip` address.
- Enter your message and hit enter to send it.
- Messages from other clients will appear in the terminal.
## Notes
- Make sure both the server and client are running on the same network for communication.