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

Method send_bytes

starlette/websockets.py:168–169  ·  view source on GitHub ↗
(self, data: bytes)

Source from the content-addressed store, hash-verified

166 await self.send({"type": "websocket.send", "text": data})
167
168 async def send_bytes(self, data: bytes) -> None:
169 await self.send({"type": "websocket.send", "bytes": data})
170
171 async def send_json(self, data: Any, mode: str = "text") -> None:
172 if mode not in {"text", "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