You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
1
# 🛰️ Python Multi-Mode Traffic Listener
2
2
3
-
A lightweight Python server that listens for incoming **REST** or **Socket** traffic on a specified port. Outputs can be printed to the console or logged to a file, based on configuration.
3
+
A lightweight Python server that listens for incoming **REST** or **WebSocket** traffic on a specified port. Outputs can be printed to the console or logged to a file, based on configuration.
4
4
5
5
---
6
6
7
7
## ⚙️ Features
8
8
9
-
- 🔁 Multi-mode support: **REST** and **Socket**
9
+
- 🔁 Multi-mode support: **REST** and **WebSocket**
10
10
- 📄 Logs to file or prints to terminal
11
11
- 🧩 Configurable via `config.ini`
12
12
- 🧵 Threaded handling for socket clients
@@ -47,7 +47,7 @@ A Flask server that echoes all HTTP requests.
47
47
python ListeningApp.py
48
48
```
49
49
50
-
Accepts GET, POST, PUT, DELETE, PATCH
50
+
Accepts GET, POST, PUT, DELETE, PATCH
51
51
Captures method, headers, and body
52
52
53
53
Example using curl:
@@ -57,7 +57,7 @@ curl -X POST http://localhost:5000/test -d "hello=world"
57
57
```
58
58
59
59
### Socket Mode
60
-
A TCP server that reads newline-terminated messages.
60
+
A TCP server that reads newline-terminated messages.
61
61
Use any TCP client to send messages.
62
62
63
63
> Responds with Socket: "Message received"
@@ -91,5 +91,5 @@ Body: hello=world
91
91
MIT License. See LICENSE file for details.
92
92
93
93
## 🤝 Contributing
94
-
Pull requests are welcome.
94
+
Pull requests are welcome.
95
95
For major changes, please open an issue first to discuss what you would like to change.
0 commit comments