This commit is contained in:
hahwu 2025-12-16 19:30:27 +08:00
parent fa06340cdc
commit 1ba7b9c9be

View File

@ -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 {