mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
update funasr-wss-client websocket-server
This commit is contained in:
parent
0b692f69b5
commit
a4bf14f91b
@ -306,7 +306,7 @@ class WebsocketClient {
|
||||
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
|
||||
|
||||
@ -100,6 +100,7 @@ void WebSocketServer::do_decoder(const std::vector<char>& buffer,
|
||||
|
||||
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'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user