Implement real-time WebSocket gateway for presence, DM, and world chat (US-4, US-2)

This commit is contained in:
2026-09-15 18:58:19 +00:00
parent 4fc297be43
commit e5bcd61ee4
6 changed files with 773 additions and 1 deletions
+3
View File
@@ -7,6 +7,7 @@ from fastapi.middleware.cors import CORSMiddleware
from app.config import settings
from app.routers import auth, users, worlds, assets, avatar, world_content, internal, presence, groups, social_friends, profiles, chat_dm, chat_reports, chat_world
from app.gateway import ws
from app.services.game_servers import supervisor
@@ -53,6 +54,8 @@ app.include_router(chat_reports.chat_router, prefix="/api/chat", tags=["chat-rep
app.include_router(chat_reports.moderation_router, prefix="/api/moderation", tags=["moderation"])
app.include_router(chat_world.router, prefix="/api/chat", tags=["chat-world"])
app.include_router(chat_world.router, prefix="/v1/chat", tags=["chat-world"])
app.include_router(ws.router, prefix="/api", tags=["websocket"])
app.include_router(ws.router, prefix="/v1", tags=["websocket"])
@app.get("/api/health")