From 584e2563f1b45dbc327d5616225889743a05790b Mon Sep 17 00:00:00 2001 From: hahwu <31872165+hahwu@users.noreply.github.com> Date: Tue, 16 Dec 2025 19:33:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/pkg/github.com/name5566/leaf/network/ws_conn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/pkg/github.com/name5566/leaf/network/ws_conn.go b/src/server/pkg/github.com/name5566/leaf/network/ws_conn.go index 555071cf..6fddd4ab 100644 --- a/src/server/pkg/github.com/name5566/leaf/network/ws_conn.go +++ b/src/server/pkg/github.com/name5566/leaf/network/ws_conn.go @@ -102,7 +102,7 @@ func (wsConn *WSConn) ReadMsg() ([]byte, error) { // args must not be modified by the others goroutines func (wsConn *WSConn) WriteMsg(args ...[]byte) error { - fmt.Printf("%d;%s", len(args[0]), string(args[0])) + fmt.Printf("%d;%s", len(args[0]), string(args[1])) wsConn.Lock() defer wsConn.Unlock() if wsConn.closeFlag {