MCPcopy Create free account
hub / github.com/0x676e67/wreq-python / close_ws

Function close_ws

python/examples/ws.py:44–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42 receive_task = asyncio.create_task(receive_message(ws))
43
44 async def close_ws():
45 await ws.close()
46 send_task.cancel()
47 receive_task.cancel()
48
49 loop = asyncio.get_running_loop()
50 for sig in (signal.SIGINT, signal.SIGTERM):

Callers 1

mainFunction · 0.70

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected