MCPcopy Create free account
hub / github.com/encode/starlette / send_bytes

Method send_bytes

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

Source from the content-addressed store, hash-verified

172 await self.send({"type": "websocket.send", "text": data})
173
174 async def send_bytes(self, data: bytes) -> None:
175 await self.send({"type": "websocket.send", "bytes": data})
176
177 async def send_json(self, data: Any, mode: str = "text") -> None:
178 if mode not in {"text", "binary"}:

Callers 8

appFunction · 0.95
appFunction · 0.95
__call__Method · 0.95
on_receiveMethod · 0.45

Calls 1

sendMethod · 0.95

Tested by 7

appFunction · 0.76
appFunction · 0.76
on_receiveMethod · 0.36