1. 为 WebSocket 中添加Tag属性,用于再同一个ws连接中共用某些属性

This commit is contained in:
fengjiayi
2025-08-25 10:53:22 +08:00
parent 819320f355
commit 856f8c2451
2 changed files with 64 additions and 30 deletions

View File

@@ -335,10 +335,7 @@ namespace Serein.Proto.WebSocket
return context;
}, context =>
{
context.MsgRequest = null;
context.MsgData = null;
context.ErrorMessage = null;
context.Model = null;
context.Reset();
});
while (webSocket.State == WebSocketState.Open)