MCPcopy
hub / github.com/nonebot/nonebot2 / receive_text

Method receive_text

nonebot/drivers/quart.py:265–269  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

263 @override
264 @catch_closed
265 async def receive_text(self) -> str:
266 msg = await self.websocket.receive()
267 if isinstance(msg, bytes):
268 raise TypeError("WebSocket received unexpected frame type: bytes")
269 return msg
270
271 @override
272 @catch_closed

Callers 4

_handle_wsFunction · 0.45
test_websocket_serverFunction · 0.45
test_cross_contextFunction · 0.45
test_websocket_clientFunction · 0.45

Calls 1

receiveMethod · 0.45

Tested by 4

_handle_wsFunction · 0.36
test_websocket_serverFunction · 0.36
test_cross_contextFunction · 0.36
test_websocket_clientFunction · 0.36