File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/frontend/src/services Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,12 @@ class WebSocketService {
1212 private planSubscriptions : Set < string > = new Set ( ) ;
1313 private reconnectTimer : NodeJS . Timeout | null = null ;
1414 private isConnecting = false ;
15- private baseWsUrl = getApiUrl ( ) || 'ws://localhost:8000' ;
15+
1616
1717 private buildSocketUrl ( processId ?: string , sessionId ?: string ) : string {
18+ const baseWsUrl = getApiUrl ( ) || 'ws://localhost:8000' ;
1819 // Trim and remove trailing slashes
19- let base = ( this . baseWsUrl || '' ) . trim ( ) . replace ( / \/ + $ / , '' ) ;
20+ let base = ( baseWsUrl || '' ) . trim ( ) . replace ( / \/ + $ / , '' ) ;
2021 // Normalize protocol: http -> ws, https -> wss
2122 base = base . replace ( / ^ h t t p : \/ \/ / i, 'ws://' )
2223 . replace ( / ^ h t t p s : \/ \/ / i, 'wss://' ) ;
You can’t perform that action at this time.
0 commit comments