Browse Source

in progress

0x4a52466c696e74 1 year ago
parent
commit
54356ed5a2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      rest_websocket/socket.go

+ 1 - 0
rest_websocket/socket.go

@@ -22,6 +22,7 @@ func NewSocket(conn *websocket.Conn) *Socket {
 		cancel:      cancel,
 		writeLocker: &sync.Mutex{},
 		chIn:        make(chan *rest.RequestStream, 10),
+		pingEnable:  true,
 	}
 	ws.lastWrite.Store(time.Now().Unix())
 	go ws.read()