We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7005035 + 398af10 commit 1fde742Copy full SHA for 1fde742
lcu_driver/connection.py
@@ -168,10 +168,13 @@ async def run_ws(self):
168
169
:return: None
170
"""
171
+ # 8MB
172
+ MAX_WS_MSG_SIZE = 8 * 1024 * 1024
173
+
174
local_session = aiohttp.ClientSession(auth=aiohttp.BasicAuth('riot', self._auth_key),
175
headers={'Content-Type': 'application/json',
176
'Accept': 'application/json'})
- self._ws = await local_session.ws_connect(self.ws_address, ssl=False)
177
+ self._ws = await local_session.ws_connect(self.ws_address, ssl=False, max_msg_size=MAX_WS_MSG_SIZE)
178
await self._ws.send_json([5, 'OnJsonApiEvent'])
179
_ = await self._ws.receive()
180
0 commit comments