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 81a08a2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
11 changes: 0 additions & 11 deletions DO_NOT_COMMIT.py

This file was deleted.

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 81a08a2

Please sign in to comment.