Connection
Connect to the WebSocket endpoint at:Request format
Send JSON messages to control the download process:Start download
Set to
"start" to begin a manga downloadThe manga URL to download
Cancel download
Set to
"cancel" to stop the current downloadResponse messages
The server sends JSON messages with different types to communicate status, progress, logs, and errors.Status message
Indicates the current state of the download process.Set to
"status"Current status:
"running", "completed", or "error"The generated PDF filename (only present when status is
"completed")Progress message
Provides real-time download progress updates.Set to
"progress"Number of chapters downloaded
Total number of chapters to download
Log message
Streams detailed log messages during the download process.Set to
"log"The log message text
Error message
Reports errors that occur during processing.Set to
"error"Error description
Message flow
Here’s the typical sequence of messages when you start a download:- Client: Send start command with URL
- Server: Status message (
"running") - Server: Multiple log messages with download progress
- Server: Multiple progress messages with chapter counts
- Server: Log message indicating PDF generation
- Server: Status message (
"completed") with filename
- Client: Send cancel command
- Server: Log message (“Cancelling…”)
- Server: Download stops gracefully
Security features
DoS protection
The server limits concurrent downloads to prevent resource exhaustion:Maximum number of simultaneous downloads allowed