修复消息包被阶段问题, 临时防范

This commit is contained in:
白茶清欢 2024-07-24 15:07:42 +08:00
parent 0ac5145c24
commit 2feb4d661c

View File

@ -150,7 +150,7 @@ func (w *wsWriter) Write(p []byte) (n int, err error) {
if nil == wsLoggerConnect { if nil == wsLoggerConnect {
return 0, nil return 0, nil
} }
p = []byte(" " + string(p))
allConnList := wsLoggerConnect.GetCtxList() allConnList := wsLoggerConnect.GetCtxList()
for _, conn := range allConnList { for _, conn := range allConnList {
_ = conn.Session.Write(p) _ = conn.Session.Write(p)