mirror of
https://github.com/thecyberlearn/chat-backend.git
synced 2026-08-18 14:32:53 +00:00
Features: - Django REST API backend - Multi-strategy web scraping system (Beautiful Soup, Playwright, Firecrawl) - Anti-detection features (proxy rotation, user-agent rotation) - Data export functionality (JSON, CSV, TXT) - Business and CrawledPage models - Enhanced crawling service with fallback mechanisms 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
37 lines
842 B
Python
37 lines
842 B
Python
"""WebSocket protocol versions 13 and 8."""
|
|
|
|
from ._websocket.helpers import WS_KEY, ws_ext_gen, ws_ext_parse
|
|
from ._websocket.models import (
|
|
WS_CLOSED_MESSAGE,
|
|
WS_CLOSING_MESSAGE,
|
|
WebSocketError,
|
|
WSCloseCode,
|
|
WSHandshakeError,
|
|
WSMessage,
|
|
WSMsgType,
|
|
)
|
|
from ._websocket.reader import WebSocketReader
|
|
from ._websocket.writer import WebSocketWriter
|
|
|
|
# Messages that the WebSocketResponse.receive needs to handle internally
|
|
_INTERNAL_RECEIVE_TYPES = frozenset(
|
|
(WSMsgType.CLOSE, WSMsgType.CLOSING, WSMsgType.PING, WSMsgType.PONG)
|
|
)
|
|
|
|
|
|
__all__ = (
|
|
"WS_CLOSED_MESSAGE",
|
|
"WS_CLOSING_MESSAGE",
|
|
"WS_KEY",
|
|
"WebSocketReader",
|
|
"WebSocketWriter",
|
|
"WSMessage",
|
|
"WebSocketError",
|
|
"WSMsgType",
|
|
"WSCloseCode",
|
|
"ws_ext_gen",
|
|
"ws_ext_parse",
|
|
"WSHandshakeError",
|
|
"WSMessage",
|
|
)
|