MCPcopy Create free account
hub / github.com/python-websockets/websockets / close_connection

Method close_connection

tests/sync/test_client.py:175–177  ·  view source on GitHub ↗
(self, request)

Source from the content-addressed store, hash-verified

173 """Client reads EOF before receiving handshake response from server."""
174
175 def close_connection(self, request):
176 self.socket.shutdown(socket.SHUT_RDWR)
177 self.socket.close()
178
179 with run_server(process_request=close_connection) as server:
180 with self.assertRaises(InvalidMessage) as raised:

Callers

nothing calls this directly

Calls 2

shutdownMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected