Skip to content

Commit beec6e8

Browse files
felipecrsfrenck
authored andcommitted
Fix WebSocket proxy for add-ons not forwarding ping/pong frame data (home-assistant#151654)
1 parent 3dacffa commit beec6e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

homeassistant/components/hassio/ingress.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,9 @@ async def _websocket_forward(
303303
elif msg.type is aiohttp.WSMsgType.BINARY:
304304
await ws_to.send_bytes(msg.data)
305305
elif msg.type is aiohttp.WSMsgType.PING:
306-
await ws_to.ping()
306+
await ws_to.ping(msg.data)
307307
elif msg.type is aiohttp.WSMsgType.PONG:
308-
await ws_to.pong()
308+
await ws_to.pong(msg.data)
309309
elif ws_to.closed:
310310
await ws_to.close(code=ws_to.close_code, message=msg.extra) # type: ignore[arg-type]
311311
except RuntimeError:

0 commit comments

Comments
 (0)