endpoint /api/ws/telemtry with auth, broadcast, db

This commit is contained in:
aa.afanasyev 2025-08-03 04:11:56 +09:00
parent 576db57d99
commit f7b592f4b9
7 changed files with 116 additions and 24 deletions

View file

@ -1,8 +1,6 @@
# routing.py
from django.urls import path
from django.urls import re_path
from . import consumers
websocket_urlpatterns = [
path("ws/echo/", consumers.EchoConsumer.as_asgi()),
re_path(r'^api/ws/(?P<pk>[0-9a-f-]+)/telemetry/$', consumers.TelemetryConsumer.as_asgi()),
]