This commit is contained in:
hahwu 2025-12-16 19:33:18 +08:00
parent 1ba7b9c9be
commit 584e2563f1

View File

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