MCPcopy
hub / github.com/encode/uvicorn / send_text

Function send_text

tests/protocols/test_websocket.py:334–337  ·  view source on GitHub ↗
(url: str)

Source from the content-addressed store, hash-verified

332 await self.send({"type": "websocket.send", "text": _text})
333
334 async def send_text(url: str):
335 async with websockets.client.connect(url) as websocket:
336 await websocket.send("abc")
337 return await websocket.recv()
338
339 config = Config(app=App, ws=ws_protocol_cls, http=http_protocol_cls, lifespan="off", port=unused_tcp_port)
340 async with run_server(config):

Callers 2

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected