chat ws with pfp is working

This commit is contained in:
David Bruno Vontor
2026-05-28 17:23:04 +02:00
parent f19375254f
commit 8269d044a2
28 changed files with 299 additions and 90 deletions

View File

@@ -16,15 +16,17 @@ from django.core.asgi import get_asgi_application
django_asgi_app = get_asgi_application()
from channels.routing import ProtocolTypeRouter, URLRouter
from channels.auth import AuthMiddlewareStack
import social.chat.routing
from social.chat.routing import websocket_urlpatterns as social_ws
from thirdparty.downloader.routing import websocket_urlpatterns as downloader_ws
from vontor_cz.middleware import JWTAuthMiddleware
websocket_urlpatterns = downloader_ws + social_ws
application = ProtocolTypeRouter({
"http": django_asgi_app,
"websocket": AuthMiddlewareStack(
"websocket": JWTAuthMiddleware(
URLRouter(
downloader_ws + social.chat.routing.websocket_urlpatterns
websocket_urlpatterns
)
),
})