分类标签归档:websocket

[ python asyncio使用 ]


fastapi启动websocket服务, 并且使用async

from fastapi import FastAPI, WebSocket, Depends, WebSocketDisconnect, WebSocketException
from fastapi.responses import HTMLResponse

from extends.redis.conn import redis_connection
from config.settings import get_settings, Settings
from typing import TypedDict, Litera

< Read more >