MCPcopy Create free account
hub / github.com/pallets/quart / send_data

Method send_data

src/quart/asgi.py:309–314  ·  view source on GitHub ↗
(self, send: ASGISendCallable, data: AnyStr)

Source from the content-addressed store, hash-verified

307 )
308
309 async def send_data(self, send: ASGISendCallable, data: AnyStr) -> None:
310 if isinstance(data, str):
311 await send({"type": "websocket.send", "bytes": None, "text": data})
312 else:
313 await send({"type": "websocket.send", "bytes": data, "text": None})
314 await websocket_sent.send_async(data)
315
316 async def accept_connection(
317 self, send: ASGISendCallable, headers: Headers, subprotocol: str | None

Callers

nothing calls this directly

Calls 1

sendFunction · 0.85

Tested by

no test coverage detected