Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions aiola/clients/stt/stream_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import socketio

from ...constants import DEFAULT_SOCKET_TIMEOUT
from ...errors import AiolaError, AiolaStreamingError, AiolaValidationError
from ...types import AiolaClientOptions, LiveEvents

Expand All @@ -27,6 +28,7 @@ def __init__(
reconnection=True,
reconnection_attempts=3,
reconnection_delay=1,
request_timeout=DEFAULT_SOCKET_TIMEOUT,
)

def connect(self) -> None:
Expand Down Expand Up @@ -132,6 +134,7 @@ def __init__(
reconnection=True,
reconnection_attempts=3,
reconnection_delay=1,
request_timeout=DEFAULT_SOCKET_TIMEOUT,
)

async def connect(self) -> None:
Expand Down
1 change: 1 addition & 0 deletions aiola/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
}

DEFAULT_HTTP_TIMEOUT = 150
DEFAULT_SOCKET_TIMEOUT = 15

DEFAULT_WORKFLOW_ID = "2c78fcf1-9265-408f-b8c3-d9d7e7ebc1bc"