Metadata-Version: 2.4
Name: wa-socket
Version: 0.1.3
Summary: Baileys-style WhatsApp Web socket for Python
Author-email: Ritik Sharma <ritiksharma19173@gmail.com>
License: MIT
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# wa-socket

Python WhatsApp Web socket using a Baileys (Node.js) backend.

## Installation
```bash
pip install wa-socket

## Requirements

- Python 3.9+
- Node.js 18+ (LTS recommended)

This library uses a Node.js backend internally (WhatsApp Web protocol).

Install Node.js from:
https://nodejs.org/

Verify installation:
```bash
node -v
npm -v

cd <python-site-packages>/wa_socket/node
npm install



## Usage

```python
from wa_socket import WhatsAppSocket

def on_message(message):
    print("New message:", message.get("text"))

sock = (
    WhatsAppSocket("session1")
    .on_message(on_message)
    .start()
)

# Blocks until QR is scanned and connection is ready
sock.wait_for_connection()

print("WhatsApp connected. Listening for messages...")
