File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @codebolt/codeboltjs" ,
3- "version" : " 2.0.4 " ,
3+ "version" : " 2.0.5 " ,
44 "description" : " " ,
55 "keywords" : [],
66 "author" : " " ,
Original file line number Diff line number Diff line change @@ -58,7 +58,8 @@ class cbws {
5858 const parentIdParam = process . env . parentId ? `&parentId=${ process . env . parentId } ` : '' ;
5959 const parentAgentInstanceIdParam = process . env . parentAgentInstanceId ? `&parentAgentInstanceId=${ process . env . parentAgentInstanceId } ` : '' ;
6060 const agentTask = process . env . agentTask ? `&agentTask=${ process . env . agentTask } ` : '' ;
61- this . websocket = new WebSocket ( `ws://localhost:${ process . env . SOCKET_PORT } /codebolt?id=${ uniqueConnectionId } ${ agentIdParam } ${ parentIdParam } ${ parentAgentInstanceIdParam } ${ agentTask } ${ process . env . Is_Dev ? '&dev=true' : '' } ` ) ;
61+ const socketPort = process . env . SOCKET_PORT || '12345' ;
62+ this . websocket = new WebSocket ( `ws://localhost:${ socketPort } /codebolt?id=${ uniqueConnectionId } ${ agentIdParam } ${ parentIdParam } ${ parentAgentInstanceIdParam } ${ agentTask } ${ process . env . Is_Dev ? '&dev=true' : '' } ` ) ;
6263
6364 return new Promise ( ( resolve , reject ) => {
6465 this . websocket . on ( 'error' , ( error : Error ) => {
You can’t perform that action at this time.
0 commit comments