File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @codebolt/codeboltjs" ,
3- "version" : " 1.1.62 " ,
3+ "version" : " 1.1.63 " ,
44 "description" : " " ,
55 "keywords" : [],
66 "author" : " " ,
Original file line number Diff line number Diff line change @@ -97,9 +97,9 @@ const cbterminal = {
9797 cbws . getWebsocket . on ( 'message' , ( data : string ) => {
9898 const response = JSON . parse ( data ) ;
9999 console . log ( "Received message:" , response ) ;
100- if ( response . type === "commandOutput" || response . type === "commandError" || response . type === "commandFinish" )
101- // Emit a custom event based on the message type
102- this . eventEmitter . emit ( "serverEvents" , response . response ) ;
100+ if ( response . type === "commandOutput" || response . type === "commandError" || response . type === "commandFinish" ) {
101+ this . eventEmitter . emit ( response . type , response ) ;
102+ }
103103 } ) ;
104104
105105 // Return an object that includes the event emitter and the stopProcess method
You can’t perform that action at this time.
0 commit comments