- Archived 'aether_sql_tables' and 'legacy_router_logs' to documentation/archive/. - Static schema documentation is now superseded by the 'ae_obj_info' MCP tool and shared agents_sync metadata.
63 lines
1.2 KiB
Markdown
63 lines
1.2 KiB
Markdown
# Router: websockets
|
|
|
|
**File:** app/routers/websockets.py
|
|
|
|
**Routes found:** 1
|
|
|
|
**Functions:** 0 —
|
|
|
|
**Classes:** 1 — ConnectionManager
|
|
|
|
|
|
|
|
## Routes
|
|
|
|
- **GET** `/ws_test`
|
|
|
|
|
|
|
|
## From-imports
|
|
|
|
- app.config
|
|
|
|
- app.db_sql
|
|
|
|
- app.lib_general
|
|
|
|
- fastapi
|
|
|
|
- fastapi.responses
|
|
|
|
- pydantic
|
|
|
|
- typing
|
|
|
|
|
|
|
|
## File preview (first 20 lines)
|
|
|
|
```python
|
|
|
|
from fastapi import APIRouter, FastAPI, Response, WebSocket, WebSocketDisconnect
|
|
from fastapi.responses import HTMLResponse
|
|
from pydantic import BaseModel, EmailStr, Field
|
|
from typing import Dict, List, Optional, Set, Union
|
|
import redis, asyncio, base64, datetime, hashlib, json, os, pathlib, shutil, time
|
|
# import asyncio, base64, datetime, hashlib, json, os, pathlib, shutil, time
|
|
# import aioredis, redis, asyncio, base64, datetime, hashlib, json, os, pathlib, shutil, time
|
|
# from aioredis import from_url, Redis
|
|
# import asyncio
|
|
# import aioredis
|
|
# import async_timeout
|
|
|
|
from app.lib_general import log, logging, common_route_params, Common_Route_Params, common_route_params_min, Common_Route_Params_Min
|
|
from app.config import settings
|
|
from app.db_sql import sql_insert, sql_update, sql_insert_or_update, sql_select, sql_delete, redis_lookup_id_random
|
|
|
|
router = APIRouter()
|
|
|
|
|
|
html = """
|
|
|
|
```
|