@@ -79,7 +79,6 @@ const cbchat = {
7979 const response = JSON . parse ( data ) ;
8080 if ( response . type === "messageResponse" ) {
8181 eventEmitter . emit ( "userMessage" , response , ( message ) => {
82- console . log ( "Callback function invoked with message:" , message ) ;
8382 websocket_1 . default . getWebsocket . send ( JSON . stringify ( {
8483 "type" : "processStoped" ,
8584 "message" : message
@@ -100,7 +99,6 @@ const cbchat = {
10099 * @param {string } message - The message to be sent.
101100 */
102101 sendMessage : ( message , payload ) => {
103- console . log ( message ) ;
104102 websocket_1 . default . getWebsocket . send ( JSON . stringify ( {
105103 "type" : "sendMessage" ,
106104 "message" : message ,
@@ -138,7 +136,6 @@ const cbchat = {
138136 // Register event listener for WebSocket messages
139137 websocket_1 . default . getWebsocket . on ( 'message' , ( data ) => {
140138 const message = JSON . parse ( data ) ;
141- console . log ( "Received message:" , message ) ;
142139 if ( message . type === 'stopProcessClicked' )
143140 // Emit a custom event based on the message type
144141 eventEmitter . emit ( "stopProcessClicked" , message ) ;
@@ -148,7 +145,6 @@ const cbchat = {
148145 event : eventEmitter ,
149146 stopProcess : ( ) => {
150147 // Implement the logic to stop the process here
151- console . log ( "Stopping process..." ) ;
152148 // For example, you might want to send a specific message to the server to stop the process
153149 websocket_1 . default . getWebsocket . send ( JSON . stringify ( {
154150 "type" : "processStoped"
@@ -162,7 +158,6 @@ const cbchat = {
162158 */
163159 stopProcess : ( ) => {
164160 // Implement the logic to stop the process here
165- console . log ( "Stopping process..." ) ;
166161 // For example, you might want to send a specific message to the server to stop the process
167162 websocket_1 . default . getWebsocket . send ( JSON . stringify ( {
168163 "type" : "processStoped"
@@ -174,7 +169,6 @@ const cbchat = {
174169 */
175170 processFinished : ( ) => {
176171 // Implement the logic to stop the process here
177- console . log ( "Process Finished ..." ) ;
178172 // For example, you might want to send a specific message to the server to stop the process
179173 websocket_1 . default . getWebsocket . send ( JSON . stringify ( {
180174 "type" : "processFinished"
0 commit comments