From a88f42b26a19daf804be9f1703324b07c1470ea3 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Wed, 3 Dec 2025 21:30:29 +0800 Subject: [PATCH] :rewind: Rolling back to old logic to provide mock device id in websocket gateway --- DysonNetwork.Ring/Connection/WebSocketController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DysonNetwork.Ring/Connection/WebSocketController.cs b/DysonNetwork.Ring/Connection/WebSocketController.cs index d8677c8..da3b26a 100644 --- a/DysonNetwork.Ring/Connection/WebSocketController.cs +++ b/DysonNetwork.Ring/Connection/WebSocketController.cs @@ -42,7 +42,7 @@ public class WebSocketController( var deviceId = currentSession.ClientId; if (string.IsNullOrEmpty(deviceId)) - return BadRequest("Unable to determine device id"); + deviceId = Guid.NewGuid().ToString(); if (deviceAlt is not null) deviceId = $"{deviceId}+{deviceAlt}";