Improve chat experience and begin search implementation

This commit is contained in:
2026-02-15 17:32:26 +00:00
parent 6612274ab9
commit a94bbff655
21 changed files with 3081 additions and 179 deletions

View File

@@ -13,4 +13,17 @@ from django.core.asgi import get_asgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "app.settings")
application = get_asgi_application()
django_asgi_app = get_asgi_application()
async def application(scope, receive, send):
if scope.get("type") == "websocket":
path = scope.get("path", "")
if path == "/ws/compose/thread/":
from core.realtime.compose_ws import compose_ws_application
await compose_ws_application(scope, receive, send)
return
await send({"type": "websocket.close", "code": 4404})
return
await django_asgi_app(scope, receive, send)