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

Method close

tests/legacy/test_protocol.py:71–75  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

69 self._eof = True
70
71 def close(self):
72 # Simulate how actual transports drop the connection.
73 if not self._closing:
74 self.loop.call_soon(self.protocol.connection_lost, None)
75 self._closing = True
76
77 def abort(self):
78 # Change this to an `if` if tests call abort() multiple times.

Calls

no outgoing calls

Tested by

no test coverage detected