from django.conf.urls import url
from django.urls import re_path

# from .test_consumers import (
#     ChatConsumer, AsyncChatConsumer, BaseSyncConsumer, BaseAsyncConsumer, ChatJsonConsumer,
#     SyncChatConsumer
# )

from chat.consumers import GroupChatConsumer, ChatConsumer

websocket_urls = [
    # url(r'^ws/basesync/$', BaseSyncConsumer.as_asgi()),
    # url(r'^ws/baseasync/$', BaseAsyncConsumer.as_asgi()),
    # url(r'^ws/json/$', ChatJsonConsumer.as_asgi()),

    # url(r'^ws/test_sync_chat/(?P<room_name>\w+)/$', SyncChatConsumer.as_asgi()), # пример синхронный чат
    # url(r'^ws/test_async_chat/(?P<room_name>\w+)/$', AsyncChatConsumer.as_asgi()), # пример асинхронный чат

    re_path(r'^ws/groups/$', GroupChatConsumer.as_asgi()),
    re_path(r'^ws/chat/(?P<group_id>\d+)/$', ChatConsumer.as_asgi()),


]
