调试
This commit is contained in:
parent
fa06340cdc
commit
1ba7b9c9be
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user