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

Method feed_eof

src/websockets/streams.py:132–144  ·  view source on GitHub ↗

End the stream. :meth:`feed_eof` cannot be called more than once. Raises: EOFError: If the stream has ended.

(self)

Source from the content-addressed store, hash-verified

130 self.buffer += data
131
132 def feed_eof(self) -> None:
133 """
134 End the stream.
135
136 :meth:`feed_eof` cannot be called more than once.
137
138 Raises:
139 EOFError: If the stream has ended.
140
141 """
142 if self.eof:
143 raise EOFError("stream ended")
144 self.eof = True
145
146 def discard(self) -> None:
147 """

Callers 15

parse_handshakeFunction · 0.95
parse_frameFunction · 0.95
benchmark_streamFunction · 0.95
benchmark_burstFunction · 0.95
read_connect_responseFunction · 0.95
parseMethod · 0.95
decodeMethod · 0.95
sent_framesMethod · 0.95
test_one_inputFunction · 0.95
test_one_inputFunction · 0.95
test_one_inputFunction · 0.95
eof_receivedMethod · 0.45

Calls

no outgoing calls

Tested by 15

parseMethod · 0.76
decodeMethod · 0.76
sent_framesMethod · 0.76
test_one_inputFunction · 0.76
test_one_inputFunction · 0.76
test_one_inputFunction · 0.76
test_read_to_eofMethod · 0.36