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

Method iter_json

starlette/websockets.py:158–163  ·  starlette/websockets.py::WebSocket.iter_json
(self)

Source from the content-addressed store, hash-verified

156 pass
157
158 async def iter_json(self) -> AsyncIterator[Any]:
159 try:
160 while True:
161 yield await self.receive_json()
162 except WebSocketDisconnect:
163 pass
164
165 async def send_text(self, data: str) -> None:
166 await self.send({class="st">"type": class="st">"websocket.send", class="st">"text": data})

Callers 2

appFunction · 0.95
readerFunction · 0.80

Calls 1

receive_jsonMethod · 0.95

Tested by 2

appFunction · 0.76
readerFunction · 0.64