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 {
5252 const initialMessage = this . getInitialMessage ( ) ;
5353 const agentIdParam = process . env . agentId ? `&agentId=${ process . env . agentId } ` : '' ;
5454 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' : '' } ` ) ;
5657 return new Promise ( ( resolve , reject ) => {
5758 this . websocket . on ( 'error' , ( error ) => {
5859 reject ( error ) ;
Original file line number Diff line number Diff line change 11{
22 "name" : " @codebolt/codeboltjs" ,
3- "version" : " 1.1.98 " ,
3+ "version" : " 1.1.99 " ,
44 "description" : " " ,
55 "keywords" : [],
66 "author" : " " ,
Original file line number Diff line number Diff line change @@ -55,7 +55,8 @@ class cbws {
5555
5656 const agentIdParam = process . env . agentId ? `&agentId=${ process . env . agentId } ` : '' ;
5757 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' : '' } ` ) ;
5960
6061 return new Promise ( ( resolve , reject ) => {
6162 this . websocket . on ( 'error' , ( error : Error ) => {
You can’t perform that action at this time.
0 commit comments