File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,8 @@ class cbws {
52
52
const initialMessage = this . getInitialMessage ( ) ;
53
53
const agentIdParam = process . env . agentId ? `&agentId=${ process . env . agentId } ` : '' ;
54
54
const parentIdParam = process . env . parentId ? `&parentId=${ process . env . parentId } ` : '' ;
55
- this . websocket = new ws_1 . default ( `ws://localhost:${ process . env . SOCKET_PORT } /codebolt?id=${ uniqueConnectionId } ${ agentIdParam } ${ parentIdParam } ${ process . env . Is_Dev ? '&dev=true' : '' } ` ) ;
55
+ const parentAgentInstanceIdParam = process . env . parentAgentInstanceId ? `&parentAgentInstanceId=${ process . env . parentAgentInstanceId } ` : '' ;
56
+ this . websocket = new ws_1 . default ( `ws://localhost:${ process . env . SOCKET_PORT } /codebolt?id=${ uniqueConnectionId } ${ agentIdParam } ${ parentIdParam } ${ parentAgentInstanceIdParam } ${ process . env . Is_Dev ? '&dev=true' : '' } ` ) ;
56
57
return new Promise ( ( resolve , reject ) => {
57
58
this . websocket . on ( 'error' , ( error ) => {
58
59
reject ( error ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @codebolt/codeboltjs" ,
3
- "version" : " 1.1.98 " ,
3
+ "version" : " 1.1.99 " ,
4
4
"description" : " " ,
5
5
"keywords" : [],
6
6
"author" : " " ,
Original file line number Diff line number Diff line change @@ -55,7 +55,8 @@ class cbws {
55
55
56
56
const agentIdParam = process . env . agentId ? `&agentId=${ process . env . agentId } ` : '' ;
57
57
const parentIdParam = process . env . parentId ? `&parentId=${ process . env . parentId } ` : '' ;
58
- this . websocket = new WebSocket ( `ws://localhost:${ process . env . SOCKET_PORT } /codebolt?id=${ uniqueConnectionId } ${ agentIdParam } ${ parentIdParam } ${ process . env . Is_Dev ? '&dev=true' : '' } ` ) ;
58
+ const parentAgentInstanceIdParam = process . env . parentAgentInstanceId ? `&parentAgentInstanceId=${ process . env . parentAgentInstanceId } ` : '' ;
59
+ this . websocket = new WebSocket ( `ws://localhost:${ process . env . SOCKET_PORT } /codebolt?id=${ uniqueConnectionId } ${ agentIdParam } ${ parentIdParam } ${ parentAgentInstanceIdParam } ${ process . env . Is_Dev ? '&dev=true' : '' } ` ) ;
59
60
60
61
return new Promise ( ( resolve , reject ) => {
61
62
this . websocket . on ( 'error' , ( error : Error ) => {
You can’t perform that action at this time.
0 commit comments