File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ class cbws {
1616 constructor ( ) {
1717 const uniqueConnectionId = this . getUniqueConnectionId ( ) ;
1818 const initialMessage = this . getInitialMessage ( ) ;
19- const agentIdParam = process . env . AGENT_ID ? `&agentId=${ process . env . AGENT_ID } ` : '' ;
20- const parentIdParam = process . env . PARENT_ID ? `&parentId=${ process . env . PARENT_ID } ` : '' ;
19+ const agentIdParam = process . env . agentId ? `&agentId=${ process . env . agentId } ` : '' ;
20+ const parentIdParam = process . env . parentId ? `&parentId=${ process . env . parentId } ` : '' ;
2121 this . websocket = new ws_1 . default ( `ws://localhost:${ process . env . SOCKET_PORT } /codebolt?id=${ uniqueConnectionId } ${ agentIdParam } ${ parentIdParam } ${ process . env . Is_Dev ? '&dev=true' : '' } ` ) ;
2222 this . initializeWebSocket ( initialMessage ) . catch ( error => {
2323 console . error ( "WebSocket connection failed:" , error ) ;
Original file line number Diff line number Diff line change 11{
22 "name" : " @codebolt/codeboltjs" ,
3- "version" : " 1.1.84 " ,
3+ "version" : " 1.1.85 " ,
44 "description" : " " ,
55 "keywords" : [],
66 "author" : " " ,
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ class cbws {
1515 const uniqueConnectionId = this . getUniqueConnectionId ( ) ;
1616 const initialMessage = this . getInitialMessage ( ) ;
1717
18- const agentIdParam = process . env . AGENT_ID ? `&agentId=${ process . env . AGENT_ID } ` : '' ;
19- const parentIdParam = process . env . PARENT_ID ? `&parentId=${ process . env . PARENT_ID } ` : '' ;
18+ const agentIdParam = process . env . agentId ? `&agentId=${ process . env . agentId } ` : '' ;
19+ const parentIdParam = process . env . parentId ? `&parentId=${ process . env . parentId } ` : '' ;
2020 this . websocket = new WebSocket ( `ws://localhost:${ process . env . SOCKET_PORT } /codebolt?id=${ uniqueConnectionId } ${ agentIdParam } ${ parentIdParam } ${ process . env . Is_Dev ? '&dev=true' : '' } ` ) ;
2121 this . initializeWebSocket ( initialMessage ) . catch ( error => {
2222 console . error ( "WebSocket connection failed:" , error ) ;
You can’t perform that action at this time.
0 commit comments