MCPcopy Create free account
hub / github.com/encode/starlette / iter_bytes

Method iter_bytes

starlette/websockets.py:157–162  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

155 pass
156
157 async def iter_bytes(self) -> AsyncIterator[bytes]:
158 try:
159 while True:
160 yield await self.receive_bytes()
161 except WebSocketDisconnect:
162 pass
163
164 async def iter_json(self) -> AsyncIterator[Any]:
165 try:

Callers 1

appFunction · 0.95

Calls 1

receive_bytesMethod · 0.95

Tested by 1

appFunction · 0.76