This commit is contained in:
laodaming 2023-07-27 17:37:56 +08:00
parent 9f9f7d3fd6
commit 64a284bd77
2 changed files with 2 additions and 2 deletions

View File

@ -262,7 +262,7 @@ func (w *wsConnectItem) dealwithReciveData(data []byte) {
var parseInfo types.DataTransferData
if err := json.Unmarshal(data, &parseInfo); err != nil {
logx.Error("invalid format of websocket message")
w.outChan <- w.respondDataFormat(constants.WEBSOCKET_ERR_DATA_FORMAT, "invalid format of websocket message")
w.outChan <- w.respondDataFormat(constants.WEBSOCKET_ERR_DATA_FORMAT, "invalid format of websocket message:"+string(data))
return
}
d, _ := json.Marshal(parseInfo.D)

View File

@ -26,7 +26,7 @@ func (w *wsConnectItem) SendToCloudRender(data []byte) {
select {
case <-w.closeChan:
return
case w.outChan <- w.respondDataFormat(constants.WEBSOCKET_ERR_DATA_FORMAT, "invalid format of websocket render image message"):
case w.outChan <- w.respondDataFormat(constants.WEBSOCKET_ERR_DATA_FORMAT, "invalid format of websocket render image message:"+string(data)):
logx.Error("invalid format of websocket render image message", err)
return
}