File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments