雾聪
2023-08-24 a4bf14f91ba1980438b7bd994d47c685cda1b6c1
update funasr-wss-client websocket-server
2个文件已修改
3 ■■■■ 已修改文件
funasr/runtime/websocket/funasr-wss-client.cpp 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
funasr/runtime/websocket/websocket-server.cpp 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
funasr/runtime/websocket/funasr-wss-client.cpp
@@ -306,7 +306,7 @@
                offset += send_block;
            }
            LOG(INFO) << "sended data len=" << len;
            LOG(INFO)<< "Thread: " << this_thread::get_id() << ", sended data len=" << len;
            // The most likely error that we will get is that the connection is
            // not in the right state. Usually this means we tried to send a
            // message to a connection that was closed or in the process of
funasr/runtime/websocket/websocket-server.cpp
@@ -100,6 +100,7 @@
      LOG(INFO) << "buffer.size=" << buffer.size() << ",result json=" << jsonresult.dump();
    }else{
      LOG(INFO) << "Sent empty meg";
      websocketpp::lib::error_code ec;
      nlohmann::json jsonresult;        // result json
      jsonresult["text"] = "";  // put result in 'text'