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 {
16
16
constructor ( ) {
17
17
const uniqueConnectionId = this . getUniqueConnectionId ( ) ;
18
18
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 } ` : '' ;
21
21
this . websocket = new ws_1 . default ( `ws://localhost:${ process . env . SOCKET_PORT } /codebolt?id=${ uniqueConnectionId } ${ agentIdParam } ${ parentIdParam } ${ process . env . Is_Dev ? '&dev=true' : '' } ` ) ;
22
22
this . initializeWebSocket ( initialMessage ) . catch ( error => {
23
23
console . error ( "WebSocket connection failed:" , error ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @codebolt/codeboltjs" ,
3
- "version" : " 1.1.84 " ,
3
+ "version" : " 1.1.85 " ,
4
4
"description" : " " ,
5
5
"keywords" : [],
6
6
"author" : " " ,
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ class cbws {
15
15
const uniqueConnectionId = this . getUniqueConnectionId ( ) ;
16
16
const initialMessage = this . getInitialMessage ( ) ;
17
17
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 } ` : '' ;
20
20
this . websocket = new WebSocket ( `ws://localhost:${ process . env . SOCKET_PORT } /codebolt?id=${ uniqueConnectionId } ${ agentIdParam } ${ parentIdParam } ${ process . env . Is_Dev ? '&dev=true' : '' } ` ) ;
21
21
this . initializeWebSocket ( initialMessage ) . catch ( error => {
22
22
console . error ( "WebSocket connection failed:" , error ) ;
You can’t perform that action at this time.
0 commit comments