v0.2 Preview: Construction Plan.
CI / test (push) Failing after 1m31s

This commit is contained in:
2026-08-08 21:25:27 +08:00
parent b88d15698a
commit 1f98f7152d
822 changed files with 96959 additions and 8 deletions
+17
View File
@@ -0,0 +1,17 @@
from channels.generic.websocket import AsyncJsonWebsocketConsumer
class HealthConsumer(AsyncJsonWebsocketConsumer):
group_name = "healthcheck"
async def connect(self):
try:
await self.channel_layer.group_add(self.group_name, self.channel_name)
await self.channel_layer.group_discard(self.group_name, self.channel_name)
except Exception:
await self.close(code=1011)
return
await self.accept()
await self.send_json({"status": "ok", "channel_layer": "ok"})
await self.close()