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

Method send_text

starlette/websockets.py:165–166  ·  starlette/websockets.py::WebSocket.send_text
(self, data: str)

Source from the content-addressed store, hash-verified

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})
167
168 async def send_bytes(self, data: bytes) -> None:
169 await self.send({class="st">"type": class="st">"websocket.send", class="st">"bytes": data})

Callers 13

appFunction · 0.95
test_websocket_iter_textFunction · 0.95
websocket_endpointFunction · 0.45
on_receiveMethod · 0.45
websocket_endpointFunction · 0.45
websocket_paramsFunction · 0.45
ws_helloworldFunction · 0.45

Calls 1

sendMethod · 0.95

Tested by 13

appFunction · 0.76
test_websocket_iter_textFunction · 0.76
websocket_endpointFunction · 0.36
on_receiveMethod · 0.36
websocket_endpointFunction · 0.36
websocket_paramsFunction · 0.36
ws_helloworldFunction · 0.36