Skip to content

Commit

Permalink
fix: increase websocket max size to 5MB from 1MB
Browse files Browse the repository at this point in the history
Closes #62
  • Loading branch information
mikejgray committed Jan 25, 2025
1 parent 6056c65 commit d17f1ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ovos_PHAL_plugin_homeassistant/logic/socketclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async def authenticate(self):
async def _connect(self):
try:
uri = f"{self.url}/api/websocket"
self.websocket = await websockets.connect(uri=uri, close_timeout=5, open_timeout=5)
self.websocket = await websockets.connect(uri=uri, close_timeout=5, open_timeout=5, max_size=5242880)

# Wait for the auth_required message
message = await self.websocket.recv()
Expand Down

0 comments on commit d17f1ae

Please sign in to comment.