MCPcopy Index your code
hub / github.com/python-websockets/websockets / close

Function close

example/faq/shutdown_client.py:12–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10 # Close the connection when receiving SIGTERM.
11 loop = asyncio.get_running_loop()
12 def close():
13 return loop.create_task(websocket.close())
14 loop.add_signal_handler(signal.SIGTERM, close)
15
16 # Process messages received on the connection.

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…