async def next_frame_generator(self): with wrap_transport_exception(): data = await self._reader.read(1024) if not data: self._writer.close() return return self._frame_parser.receive_data(data)
async def send_frame(self, frame: Frame): with wrap_transport_exception(): await websocket.send(frame.serialize())
async def send_frame(self, frame: Frame): await self._quic_protocol.wait_connected() with wrap_transport_exception(): await self._quic_protocol.query(frame)
async def _message_generator(self): with wrap_transport_exception(): async for msg in self._ws: if msg.type == aiohttp.WSMsgType.BINARY: yield msg.data
async def send_frame(self, frame: Frame): await self._connection_ready.wait() with wrap_transport_exception(): await self._ws.send_bytes(frame.serialize())
async def on_send_queue_empty(self): with wrap_transport_exception(): await self._writer.drain()
async def send_frame(self, frame: Frame): with wrap_transport_exception(): self._writer.write(serialize_with_frame_size_header(frame))