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

Method write_eof

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

Source from the content-addressed store, hash-verified

62 return True
63
64 def write_eof(self):
65 # When the protocol half-closes the TCP connection, it expects the
66 # other end to close it. Simulate that.
67 if not self._eof:
68 self.loop.call_soon(self.close)
69 self._eof = True
70
71 def close(self):
72 # Simulate how actual transports drop the connection.

Callers 3

send_dataMethod · 0.45
close_connectionMethod · 0.45
run_ioMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected