♻️ Refactor the way to handle websocket
This commit is contained in:
12
DysonNetwork.Shared/Stream/WebSocketPacketEvent.cs
Normal file
12
DysonNetwork.Shared/Stream/WebSocketPacketEvent.cs
Normal 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!;
|
||||
}
|
Reference in New Issue
Block a user