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

Method send_bytes

starlette/websockets.py:168–169  ·  starlette/websockets.py::WebSocket.send_bytes
(self, data: bytes)

Source from the content-addressed store, hash-verified

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})
170
171 async def send_json(self, data: Any, mode: str = class="st">"text") -> None:
172 if mode not in {class="st">"text", class="st">"binary"}:

Callers 7

appFunction · 0.95
appFunction · 0.95
on_receiveMethod · 0.45

Calls 1

sendMethod · 0.95

Tested by 7

appFunction · 0.76
appFunction · 0.76
on_receiveMethod · 0.36