# Path: game/consumers.py
# class LobbyConsumer(JsonWebsocketConsumer):
# class GameConsumer(JsonWebsocketConsumer):
#     def connection_groups(self, **kwargs):
#     def connect(self, message, **kwargs):
#     def receive(self, content, **kwargs):
#     def disconnect(self, message, **kwargs):
#     def connection_groups(self, **kwargs):
#     def connect(self, message, **kwargs):
#     def receive(self, content, **kwargs):
#     def disconnect(self, message, **kwargs):


from channels.routing import route, route_class
from channels.staticfiles import StaticFilesConsumer
from game import consumers


channel_routing = [
    route_class(consumers.LobbyConsumer,  path=r"^/lobby/"),
    route_class(consumers.GameConsumer,  path=r"^/game/(?P<game_id>\d+)/$")

# Path: game/consumers.py
# class LobbyConsumer(JsonWebsocketConsumer):
# class GameConsumer(JsonWebsocketConsumer):
#     def connection_groups(self, **kwargs):
#     def connect(self, message, **kwargs):
#     def receive(self, content, **kwargs):
#     def disconnect(self, message, **kwargs):
#     def connection_groups(self, **kwargs):
#     def connect(self, message, **kwargs):
#     def receive(self, content, **kwargs):
#     def disconnect(self, message, **kwargs):


# Path: channels_obstruction/routing.py
from channels.routing import route, route_class
from channels.staticfiles import StaticFilesConsumer
from game import consumers



channel_routing = [
    route_class(consumers.LobbyConsumer,  path=r"^/lobby/"),
    route_class(consumers.GameConsumer,  path=r"^/game/(?P<game_id>\d+)/$")

]