https://github.com/jongminchoi98/chat-application
https://github.com/jongminchoi98/chat-application
tcp-sockets
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jongminchoi98/chat-application
- Owner: JongminChoi98
- Created: 2025-03-18T19:42:34.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-04-04T18:29:42.000Z (7 months ago)
- Last Synced: 2025-04-04T19:42:14.558Z (7 months ago)
- Topics: tcp-sockets
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Peer‑to‑Peer Chat Application
## 📋 Team & Contributions
| Member Name | Student ID | Contribution |
|---------------|------------|---------------------------------------------------------|
| Jongmin Choi | 203874794 | Server/client socket logic; connection management |
| Marzia Mehr | 109951593 | Server/client socket logic; connection management |
## 🖥️ Prerequisites
- **Node.js ≥ 18.x**
## 🚀 Installation & Setup
1. Unzip `jongmin_choi_203874794.zip`.
## ▶️ Running
Open a terminal for each peer and run:
```bash
node chat.js
```
## 💬 Commands
| Command | Description |
|-----------------------------------|----------------------------------------------------|
| `help` | Show all available commands |
| `myip` | Display this process’s IPv4 address |
| `myport` | Display the listening port number |
| `connect ` | Establish a new TCP connection to `:` |
| `list` | List all active connections (ID, IP address, port) |
| `terminate ` | Close the specified connection by its ID |
| `send ` | Send a message (max 100 chars) to the given ID |
| `exit` | Terminate all connections and exit the program |