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

Method iter_bytes

starlette/websockets.py:151–156  ·  starlette/websockets.py::WebSocket.iter_bytes
(self)

Source from the content-addressed store, hash-verified

149 pass
150
151 async def iter_bytes(self) -> AsyncIterator[bytes]:
152 try:
153 while True:
154 yield await self.receive_bytes()
155 except WebSocketDisconnect:
156 pass
157
158 async def iter_json(self) -> AsyncIterator[Any]:
159 try:

Callers 1

appFunction · 0.95

Calls 1

receive_bytesMethod · 0.95

Tested by 1

appFunction · 0.76