MCPcopy
hub / github.com/aio-libs/aiohttp / receive_bytes

Method receive_bytes

aiohttp/web_ws.py:280–286  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

278
279 @asyncio.coroutine
280 def receive_bytes(self):
281 msg = yield from self.receive()
282 if msg.tp != MsgType.binary:
283 raise TypeError(
284 "Received message {}:{!r} is not bytes".format(msg.tp,
285 msg.data))
286 return msg.data
287
288 def write(self, data):
289 raise RuntimeError("Cannot call .write() for websocket")

Callers 3

handlerMethod · 0.95
goMethod · 0.95
handlerFunction · 0.95

Calls 1

receiveMethod · 0.95

Tested by 3

handlerMethod · 0.76
goMethod · 0.76
handlerFunction · 0.76