Skip to content

Commit 82175db

Browse files
committed
Use wss path if provided
1 parent 903af08 commit 82175db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llmstack/common/runner/server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,12 @@ def GetRemoteBrowser(self, request_iterator: Iterator[RemoteBrowserRequest], con
104104

105105
# Get a display from the pool and send its info to the client
106106
display = self.display_pool.get_display(remote_control=True)
107+
wss_server_path = f'{self.wss_hostname}:{self.wss_port}' if '/' not in self.wss_hostname else self.wss_hostname
107108

108109
# Return the display info to the client
109110
yield RemoteBrowserResponse(
110111
session=RemoteBrowserSession(
111-
ws_url=f"{'wss' if self.wss_secure else 'ws'}://{display['username']}:{display['password']}@{self.wss_hostname}:{self.wss_port}?token={display['token']}",
112+
ws_url=f"{'wss' if self.wss_secure else 'ws'}://{display['username']}:{display['password']}@{wss_server_path}?token={display['token']}",
112113
),
113114
state=RemoteBrowserState.RUNNING,
114115
)

0 commit comments

Comments
 (0)