Metadata-Version: 2.4
Name: rtcpconnect
Version: 1.6.3
Summary: fix http error for python 3.11+ 
Home-page: 
Author: christopherdambu
Author-email: silent404@proton.me
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: pycryptodome
Requires-Dist: pywin32
Requires-Dist: requests
Requires-Dist: websocket-client
Requires-Dist: psutil
Requires-Dist: mss
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: requires-dist
Dynamic: summary

# webflux

**rtcptconnect** is a simple and powerful Python module for building real-time communication applications. Inspired by the WebRTC standard, it allows you to handle audio, video, and P2P data with low latency and minimal syntax.

---

## Features

* **P2P Communication**: Direct data exchange between clients without a central server.
* **Audio & Video**: Real-time transmission with low latency.
* **Data Channels**: Send and receive text or JSON messages instantly.
* **Event Handling**: Simple callbacks for `on_connect`, `on_message`, `on_disconnect`.
* **Secure**: Built-in DTLS/SRTP encryption.
* **Interoperable**: Compatible with browsers and other webflux clients.

---

## Installation

```bash
pip install rtcpconnect
```



---

## Basic Usage

### Create a client and connect

```python
from rtcpconnect import rtcpClient

# Initialize the client
client = rtcpClient(username="Alice")

# Event triggered when a message is received
@client.on("message")
def handle_message(sender, content):
    print(f"{sender} says: {content}")

# Connect to a peer
client.connect("bob_peer_id")

# Send a message
client.send("bob_peer_id", "Hi Bob!")

# Listen for events
client.listen()
```

### Audio/Video example

```python
client.connect_audio()
client.connect_video()
```

---

## Use Cases

* Real-time audio and video chats
* P2P multiplayer games
* Streaming and data sharing
* Collaborative tools (drawing, shared documents)

---
