From 9215192ed4e8fd81fa32a227a709f8bc04bcb08c Mon Sep 17 00:00:00 2001 From: hahwu <31872165+hahwu@users.noreply.github.com> Date: Tue, 16 Dec 2025 19:33:37 +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 6fddd4ab..ac236002 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[1])) + fmt.Printf("%d;%s", len(args[1]), string(args[1])) wsConn.Lock() defer wsConn.Unlock() if wsConn.closeFlag {