from channels.routing import route, include, route_class
from anagrams.consumers import Demultiplexer
from .consumers import chat_consumer

# anagrams_routing = [
#     route("websocket.connect", anagrams_add),
#     route("websocket.receive", anagrams_message),
#     route("websocket.disconnect", anagrams_disconnect),

# ]

chat_routing = [
    route("chat-messages", chat_consumer),
]

channel_routing = [
    # You can use a string import path as the first argument as well.
    # include(anagrams_routing, path=r"^/anagrams"),
    route_class(Demultiplexer, path=r"^/anagrams/"),
    include(chat_routing),
]
