This commit is contained in:
hahwu 2025-12-16 19:37:26 +08:00
parent 9215192ed4
commit 6211e7fa80

View File

@ -2,7 +2,6 @@ package network
import ( import (
"errors" "errors"
"fmt"
"net" "net"
"sync" "sync"
@ -102,7 +101,6 @@ func (wsConn *WSConn) ReadMsg() ([]byte, error) {
// args must not be modified by the others goroutines // args must not be modified by the others goroutines
func (wsConn *WSConn) WriteMsg(args ...[]byte) error { func (wsConn *WSConn) WriteMsg(args ...[]byte) error {
fmt.Printf("%d;%s", len(args[1]), string(args[1]))
wsConn.Lock() wsConn.Lock()
defer wsConn.Unlock() defer wsConn.Unlock()
if wsConn.closeFlag { if wsConn.closeFlag {