14 lines
353 B
Python
14 lines
353 B
Python
"""
|
|
WebSocket Routing für Chat-System
|
|
"""
|
|
|
|
from django.urls import re_path
|
|
from . import consumers
|
|
|
|
websocket_urlpatterns = [
|
|
# Chat-Raum WebSocket
|
|
re_path(r'ws/chat/(?P<room_id>[^/]+)/$', consumers.ChatConsumer.as_asgi()),
|
|
|
|
# Benachrichtigungen WebSocket
|
|
re_path(r'ws/notifications/$', consumers.NotificationConsumer.as_asgi()),
|
|
] |