from django.urls import re_path from . import consumers websocket_urlpatterns = [ re_path(r'ws/games/pong/(?P\d+)$', consumers.PongWebSocket.as_asgi()), re_path(r'ws/games/tictactoe/(?P\d+)$', consumers.TicTacToeWebSocket.as_asgi()), ]