go-webssh
go-webssh copied to clipboard
用cat命令cat多个内容包中文文件时报 Invalid UTF-8 in text frame
cat多个内容包中文文件时报 Invalid UTF-8 in text frame 错
_, wsData, err := wsConn.ReadMessage()
// log.Println(wsData)
// log.Println(string(wsData))
if err != nil {
log.Println("reading webSocket message failed!:")
log.Println(err.Error())
// logrus.WithError(err).Error("reading webSocket message failed")
// time.Sleep(time.Second * 10)
return
}
websocket: close 1002 (protocol error): Invalid UTF-8 in text frame