Skip to content

Commit 1f5e802

Browse files
committed
Using original pathname for the websocket in dynamic address mode
1 parent 09b7c3e commit 1f5e802

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

remi/gui.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1406,10 +1406,11 @@ def set_internal_js(self, app_identifier, net_interface_ip, pending_messages_que
14061406
else{
14071407
host = document.location.host;
14081408
port = document.location.port;
1409+
pathname = document.location.pathname;
14091410
if (port != ''){
14101411
port = `:${port}`;
14111412
}
1412-
wss_url = `${ws_wss}://${document.location.host}${port}/`;
1413+
wss_url = `${ws_wss}://${document.location.host}${port}${pathname}`;
14131414
}
14141415
14151416
this._ws = new WebSocket(wss_url);

0 commit comments

Comments
 (0)