game: init: consumer

This commit is contained in:
2023-12-28 12:02:39 +01:00
parent f11af8336a
commit 231622a2c2
5 changed files with 59 additions and 3 deletions

View File

@ -2,5 +2,5 @@ from django.urls import re_path
from . import consumers
websocket_urlpatterns = [
re_path(r'ws/tournaments/(?P<tournament_id>\d+)$', consumers.TournamentWebConsumer.as_asgi())
re_path(r'ws/games/(?P<game_id>\d+)$', consumers.GameWebSocket.as_asgi())
]