@codebolt/codeboltjs 1.1.48 → 1.1.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/modules/websocket.js +2 -2
- package/package.json +1 -1
- package/src/modules/websocket.ts +2 -2
package/modules/websocket.js
CHANGED
|
@@ -26,7 +26,7 @@ class cbws {
|
|
|
26
26
|
try {
|
|
27
27
|
let fileContents = fs_1.default.readFileSync('./codeboltagent.yml', 'utf8');
|
|
28
28
|
let data = js_yaml_1.default.load(fileContents);
|
|
29
|
-
return data.
|
|
29
|
+
return data.unique_connectionid;
|
|
30
30
|
}
|
|
31
31
|
catch (e) {
|
|
32
32
|
console.error('Unable to locate codeboltagent.yml file.');
|
|
@@ -37,7 +37,7 @@ class cbws {
|
|
|
37
37
|
try {
|
|
38
38
|
let fileContents = fs_1.default.readFileSync('./codeboltagent.yml', 'utf8');
|
|
39
39
|
let data = js_yaml_1.default.load(fileContents);
|
|
40
|
-
return data.
|
|
40
|
+
return data.initial_message;
|
|
41
41
|
}
|
|
42
42
|
catch (e) {
|
|
43
43
|
console.error('Unable to locate codeboltagent.yml file.');
|
package/package.json
CHANGED
package/src/modules/websocket.ts
CHANGED
|
@@ -24,7 +24,7 @@ class cbws {
|
|
|
24
24
|
try {
|
|
25
25
|
let fileContents = fs.readFileSync('./codeboltagent.yml', 'utf8');
|
|
26
26
|
let data:any = yaml.load(fileContents);
|
|
27
|
-
return data.
|
|
27
|
+
return data.unique_connectionid;
|
|
28
28
|
} catch (e) {
|
|
29
29
|
console.error('Unable to locate codeboltagent.yml file.');
|
|
30
30
|
return '';
|
|
@@ -35,7 +35,7 @@ class cbws {
|
|
|
35
35
|
try {
|
|
36
36
|
let fileContents = fs.readFileSync('./codeboltagent.yml', 'utf8');
|
|
37
37
|
let data:any = yaml.load(fileContents);
|
|
38
|
-
return data.
|
|
38
|
+
return data.initial_message;
|
|
39
39
|
} catch (e) {
|
|
40
40
|
console.error('Unable to locate codeboltagent.yml file.');
|
|
41
41
|
return '';
|