Update nonebot/drivers/aiohttp.py

Co-authored-by: Ju4tCode <42488585+yanyongyu@users.noreply.github.com>
This commit is contained in:
StarHeart
2026-04-19 22:28:12 +08:00
committed by GitHub
parent 699ce0e967
commit 22e4038bbf

View File

@@ -344,7 +344,7 @@ class Mixin(HTTPClientMixin, WebSocketClientMixin):
timeout=timeout,
headers=setup.headers,
proxy=setup.proxy,
autoping=autoping,
autoping=heartbeat is not None,
heartbeat=heartbeat,
) as ws:
yield WebSocket(request=setup, session=session, websocket=ws)