Skip to content

Commit 1cad6b0

Browse files
logging added to codebolt js
1 parent 6fe76ae commit 1cad6b0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codebolt/codeboltjs",
3-
"version": "2.0.5",
3+
"version": "2.0.6",
44
"description": "",
55
"keywords": [],
66
"author": "",

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class Codebolt {
4040
* @description Initializes the websocket connection.
4141
*/
4242
constructor() {
43+
console.log("Codebolt Agent initialized");
4344
cbws.initializeWebSocket()
4445
this.websocket = cbws.getWebsocket;
4546

@@ -109,6 +110,7 @@ class Codebolt {
109110
const waitForConnection = () => {
110111
if (cbws.messageManager) {
111112
const handleUserMessage = async (response: any) => {
113+
console.log("Message received By Agent Library Starting Custom Agent Handler Logic", response);
112114
if (response.type === "messageResponse") {
113115
try {
114116
const result = await handler(response);

0 commit comments

Comments
 (0)