mirror of
https://github.com/wahyd4/links.git
synced 2026-08-09 05:06:16 +10:00
Volcengine ASR server sends a WS close frame (opcode=8, code 1000, 'finish last sequence') after receiving the final audio chunk. websocket-client fires on_error with this frame data instead of (or in addition to) on_close — treat opcode=8 and 'already closed' as normal termination, not an error. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>