Skip to content

Commit 7ac64ed

Browse files
committed
rename fields
1 parent 77430fd commit 7ac64ed

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

livekit-rtc/livekit/rtc/room.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ class RoomOptions:
107107
"""Options for end-to-end encryption."""
108108
rtc_config: RtcConfiguration | None = None
109109
"""WebRTC-related configuration."""
110-
connect_timeout_ms: int | None = None
111-
"""Timeout in milliseconds for each signal connection attempt. When None, uses the default (5000ms)."""
110+
connect_timeout: float | None = None
111+
"""Timeout in seconds for each signal connection attempt. When None, uses the default (5s)."""
112112
single_peer_connection: bool | None = None
113113
"""Use a single peer connection for both publish and subscribe. When None, uses the default (true)."""
114114

@@ -436,8 +436,8 @@ def on_participant_connected(participant):
436436
req.connect.options.auto_subscribe = options.auto_subscribe
437437
req.connect.options.dynacast = options.dynacast
438438

439-
if options.connect_timeout_ms is not None:
440-
req.connect.options.connect_timeout_ms = options.connect_timeout_ms
439+
if options.connect_timeout is not None:
440+
req.connect.options.connect_timeout_ms = int(options.connect_timeout * 1000)
441441

442442
if options.single_peer_connection is not None:
443443
req.connect.options.single_peer_connection = options.single_peer_connection

0 commit comments

Comments
 (0)