""" WebSocket URL routing for appointments app. Defines WebSocket URL patterns for: - Queue status updates - Patient-specific queue updates """ from django.urls import re_path from . import consumers websocket_urlpatterns = [ # Queue status WebSocket # ws://domain/ws/appointments/queue// re_path( r'ws/appointments/queue/(?P\d+)/$', consumers.QueueConsumer.as_asgi() ), # Patient-specific queue WebSocket # ws://domain/ws/appointments/queue//patient// re_path( r'ws/appointments/queue/(?P\d+)/patient/(?P\d+)/$', consumers.PatientQueueConsumer.as_asgi() ), ]