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

Method iter_text

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

Source from the content-addressed store, hash-verified

148 return json.loads(text)
149
150 async def iter_text(self) -> AsyncIterator[str]:
151 try:
152 while True:
153 yield await self.receive_text()
154 except WebSocketDisconnect:
155 pass
156
157 async def iter_bytes(self) -> AsyncIterator[bytes]:
158 try:

Callers 1

appFunction · 0.95

Calls 1

receive_textMethod · 0.95

Tested by 1

appFunction · 0.76