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

Method close

astrbot/dashboard/asgi_runtime.py:220–221  ·  view source on GitHub ↗
(self, code: int = 1000, reason: str | None = None)

Source from the content-addressed store, hash-verified

218 await self._websocket.send_json(payload)
219
220 async def close(self, code: int = 1000, reason: str | None = None) -> None:
221 await self._websocket.close(code=code, reason=reason or "")
222
223
224class AdapterTestHeaders:

Callers 3

check_port_in_useMethod · 0.45
close_wsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected