Support sending is_eof for online websocket server. (#2204)

is_final=true means an endpoint is detected.

is_eof=true means all received samples have been processed
by the server.
This commit is contained in:
Fangjun Kuang
2025-05-13 14:49:22 +08:00
committed by GitHub
parent cf67d72c22
commit 9a0e16f092
3 changed files with 10 additions and 2 deletions

View File

@@ -210,6 +210,7 @@ void OnlineWebsocketDecoder::Decode() {
if (!recognizer_->IsReady(c->s.get()) && c->eof) {
result.is_final = true;
result.is_eof = true;
}
asio::post(server_->GetConnectionContext(),