File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @codebolt/codeboltjs" ,
3- "version" : " 1.1.46 " ,
3+ "version" : " 1.1.47 " ,
44 "description" : " " ,
55 "keywords" : [],
66 "author" : " " ,
Original file line number Diff line number Diff line change @@ -150,7 +150,19 @@ const cbchat = {
150150 }
151151 } ) ;
152152 } ) ;
153- }
153+ } ,
154+ /**
155+ * Sends a notification event to the server.
156+ * @param {string } notificationMessage - The message to be sent in the notification.
157+ */
158+ sendNotificationEvent : ( notificationMessage : string , type : 'debug' | 'git' | 'planner' | 'browser' | 'editor' | 'terminal' | 'preview' ) : void => {
159+ cbws . getWebsocket . send ( JSON . stringify ( {
160+ "type" : "notificationEvent" ,
161+ "message" : notificationMessage ,
162+ "eventType" :type
163+ } ) ) ;
164+ } ,
165+
154166} ;
155167
156168export default cbchat ;
You can’t perform that action at this time.
0 commit comments