11 lines
325 B
Python
11 lines
325 B
Python
|
|
from django.urls import path
|
||
|
|
|
||
|
|
from . import consumers
|
||
|
|
|
||
|
|
|
||
|
|
# room_id is a free-form string (`mysea-<owner_id>` now, room UUID later), so
|
||
|
|
# a <str:…> converter — NOT <uuid:…> — keeps both keying schemes on one route.
|
||
|
|
websocket_urlpatterns = [
|
||
|
|
path("ws/voice/<str:room_id>/", consumers.RoomVoiceConsumer.as_asgi()),
|
||
|
|
]
|