from django.urls import path

from django_idom.config import IDOM_WEBSOCKET_URL

from .consumer import IdomAsyncWebsocketConsumer


IDOM_WEBSOCKET_PATH = path(
    f"{IDOM_WEBSOCKET_URL}<dotted_path>/<uuid>/", IdomAsyncWebsocketConsumer.as_asgi()
)

"""A URL path for :class:`IdomAsyncWebsocketConsumer`.

Required in order for IDOM to know the websocket path.
"""
