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

Method receive_str

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

Source from the content-addressed store, hash-verified

270
271 @asyncio.coroutine
272 def receive_str(self):
273 msg = yield from self.receive()
274 if msg.tp != MsgType.text:
275 raise TypeError(
276 "Received message {}:{!r} is not str".format(msg.tp, msg.data))
277 return msg.data
278
279 @asyncio.coroutine
280 def receive_bytes(self):

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