mirror of
https://github.com/AudebertAdrien/ft_transcendence.git
synced 2026-02-04 03:30:26 +01:00
16 lines
442 B
Python
16 lines
442 B
Python
# /pong/game/routing.py
|
|
from django.urls import re_path
|
|
from . import consumers
|
|
import logging
|
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
logger.debug("Configuring WebSocket routing patterns")
|
|
|
|
websocket_urlpatterns = [
|
|
re_path(r'ws/game/$', consumers.GameConsumer.as_asgi(), name='game_ws'),
|
|
re_path(r'ws/chat/(?P<room_name>\w+)/$', consumers.ChatConsumer.as_asgi()),
|
|
]
|
|
|
|
logger.info("WebSocket routing patterns configured successfully")
|