sendNotificationEvent
codebolt.chat.sendNotificationEvent(notificationMessage: string, type: 'debug' | 'git' | 'planner' | 'browser' | 'editor' | 'terminal' | 'preview'): void
Sends a notification event to the server.
Parameters
notificationMessage(string): The message to be sent in the notification.type('debug' | 'git' | 'planner' | 'browser' | 'editor' | 'terminal' | 'preview'): The type of notification to send.
Returns
void: ' '
Response Structure
This method returns void and does not provide a response. The notification event is sent immediately when the method is called.
Example
// Send a debug notification
codebolt.chat.sendNotificationEvent("File processing complete", "debug");
// Send a terminal notification
codebolt.chat.sendNotificationEvent("Command executed successfully", "terminal");
Explanation
The sendNotificationEvent function sends a notification event to the server with a specified message and type. This allows you to communicate different types of events or status updates to the user through the Codebolt interface.