Skip to content

Commit 196ce45

Browse files
processFinished added
1 parent 716dfd8 commit 196ce45

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-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": "1.1.51",
3+
"version": "1.1.53",
44
"description": "",
55
"keywords": [],
66
"author": "",

src/modules/chat.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,18 @@ const cbchat = {
130130
"type": "processStoped"
131131
}));
132132
},
133+
/**
134+
* Stops the ongoing process.
135+
* Sends a specific message to the server to stop the process.
136+
*/
137+
processFinished: () => {
138+
// Implement the logic to stop the process here
139+
console.log("Process Finished ...");
140+
// For example, you might want to send a specific message to the server to stop the process
141+
cbws.getWebsocket.send(JSON.stringify({
142+
"type": "processFinished"
143+
}));
144+
},
133145

134146
/**
135147
* Sends a confirmation request to the server with two options: Yes or No.

0 commit comments

Comments
 (0)