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 1
1
{
2
2
"name" : " @codebolt/codeboltjs" ,
3
- "version" : " 2.0.4 " ,
3
+ "version" : " 2.0.5 " ,
4
4
"description" : " " ,
5
5
"keywords" : [],
6
6
"author" : " " ,
Original file line number Diff line number Diff line change @@ -58,7 +58,8 @@ class cbws {
58
58
const parentIdParam = process . env . parentId ? `&parentId=${ process . env . parentId } ` : '' ;
59
59
const parentAgentInstanceIdParam = process . env . parentAgentInstanceId ? `&parentAgentInstanceId=${ process . env . parentAgentInstanceId } ` : '' ;
60
60
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' : '' } ` ) ;
62
63
63
64
return new Promise ( ( resolve , reject ) => {
64
65
this . websocket . on ( 'error' , ( error : Error ) => {
You can’t perform that action at this time.
0 commit comments