mirror of
https://github.com/home-assistant/core.git
synced 2026-04-06 23:47:33 +00:00
Fix WebSocket proxy for add-ons not forwarding ping/pong frame data (#151654)
This commit is contained in:
committed by
Franck Nijhof
parent
3dacffaaf9
commit
beec6e86e0
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user