Browse Source

in progress

0x4a52466c696e74 1 năm trước cách đây
mục cha
commit
54356ed5a2
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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()