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

Method receive_bytes

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

Source from the content-addressed store, hash-verified

271 @override
272 @catch_closed
273 async def receive_bytes(self) -> bytes:
274 msg = await self.websocket.receive()
275 if isinstance(msg, str):
276 raise TypeError("WebSocket received unexpected frame type: str")
277 return msg
278
279 @override
280 async def send_text(self, data: str):

Callers 3

_handle_wsFunction · 0.45
test_websocket_serverFunction · 0.45
test_websocket_clientFunction · 0.45

Calls 1

receiveMethod · 0.45

Tested by 3

_handle_wsFunction · 0.36
test_websocket_serverFunction · 0.36
test_websocket_clientFunction · 0.36