MCPcopy
hub / github.com/encode/starlette / receive_bytes

Method receive_bytes

starlette/testclient.py:192–195  ·  starlette/testclient.py::WebSocketTestSession.receive_bytes
(self)

Source from the content-addressed store, hash-verified

190 return cast(str, message[class="st">"text"])
191
192 def receive_bytes(self) -> bytes:
193 message = self.receive()
194 self._raise_on_close(message)
195 return cast(bytes, message[class="st">"bytes"])
196
197 def receive_json(self, mode: Literal[class="st">"text", class="st">"binary"] = class="st">"text") -> Any:
198 message = self.receive()

Callers

nothing calls this directly

Calls 2

receiveMethod · 0.95
_raise_on_closeMethod · 0.95

Tested by

no test coverage detected