An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# UDP Chat App

![Cover](./assets/cover.png)

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.