Common networking stuffs

This commit is contained in:
Tom
2024-06-24 22:28:40 +00:00
commit aa9e3dbcd7
10 changed files with 402 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
using System.Text.Json.Serialization;
namespace CommonSocketLibrary.Common
{
public class WebSocketMessage
{
[JsonPropertyName("op")]
public int OpCode { get; set; }
[JsonPropertyName("d")]
public object? Data { get; set; }
}
}