♻️ Refactor the way to handle websocket

This commit is contained in:
2025-09-21 23:07:20 +08:00
parent e3657386cd
commit 204640a759
13 changed files with 196 additions and 219 deletions

View File

@@ -0,0 +1,12 @@
namespace DysonNetwork.Shared.Stream;
public class WebSocketPacketEvent
{
public static string Type => "websocket_msg";
public static string SubjectPrefix = "websocket_";
public Guid AccountId { get; set; }
public string DeviceId { get; set; } = null!;
public byte[] PacketBytes { get; set; } = null!;
}