MCPcopy
hub / github.com/AstrBotDevs/AstrBot / close_ws

Function close_ws

astrbot/dashboard/api/open_api.py:286–287  ·  view source on GitHub ↗
(code: int, reason: str)

Source from the content-addressed store, hash-verified

284 chat_service: ChatService = websocket.app.state.services.chat
285
286 async def close_ws(code: int, reason: str) -> None:
287 await websocket.close(code=code, reason=reason)
288
289 await service.run_chat_websocket(
290 raw_api_key=_extract_ws_api_key(websocket),

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected