From 1ba7b9c9be3c31facdfda4afe4eaad72b7bc11e2 Mon Sep 17 00:00:00 2001 From: hahwu <31872165+hahwu@users.noreply.github.com> Date: Tue, 16 Dec 2025 19:30:27 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 9dced22b..555071cf 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 @@ -2,6 +2,7 @@ package network import ( "errors" + "fmt" "net" "sync" @@ -101,8 +102,7 @@ func (wsConn *WSConn) ReadMsg() ([]byte, error) { // args must not be modified by the others goroutines func (wsConn *WSConn) WriteMsg(args ...[]byte) error { - return nil - log.Debug("%d;%s", len(args[0]), string(args[0])) + fmt.Printf("%d;%s", len(args[0]), string(args[0])) wsConn.Lock() defer wsConn.Unlock() if wsConn.closeFlag {