Fix WebSocket proxy for add-ons not forwarding ping/pong frame data (#151654)

This commit is contained in:
Felipe Santos
2025-09-04 04:30:23 -03:00
committed by Franck Nijhof
parent 3dacffaaf9
commit beec6e86e0

View File

@@ -303,9 +303,9 @@ async def _websocket_forward(
elif msg.type is aiohttp.WSMsgType.BINARY:
await ws_to.send_bytes(msg.data)
elif msg.type is aiohttp.WSMsgType.PING:
await ws_to.ping()
await ws_to.ping(msg.data)
elif msg.type is aiohttp.WSMsgType.PONG:
await ws_to.pong()
await ws_to.pong(msg.data)
elif ws_to.closed:
await ws_to.close(code=ws_to.close_code, message=msg.extra) # type: ignore[arg-type]
except RuntimeError: