MCPcopy Create free account
hub / github.com/modelscope/FunASR / ws_reset

Function ws_reset

runtime/python/websocket/funasr_wss_server.py:324–333  ·  view source on GitHub ↗
(websocket)

Source from the content-addressed store, hash-verified

322
323
324async def ws_reset(websocket):
325 print("ws reset now, total num is ", len(websocket_users))
326
327 websocket.status_dict_asr_online["cache"] = {}
328 websocket.status_dict_asr_online["is_final"] = True
329 websocket.status_dict_vad["cache"] = {}
330 websocket.status_dict_vad["is_final"] = True
331 websocket.status_dict_punc["cache"] = {}
332
333 await websocket.close()
334
335
336async def clear_websocket():

Callers 2

clear_websocketFunction · 0.85
ws_serveFunction · 0.85

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…