sendNotificationEvent
codebolt.chat.sendNotificationEvent(notificationMessage: string, type: 'debug' | 'git' | 'planner' | 'browser' | 'editor' | 'terminal' | 'preview'): void
Sends a notification event to the server.
Parameters
Name | Type | Description |
---|---|---|
notificationMessage | string | The message to be sent in the notification. |
type | 'debug' | 'git' | 'planner' | 'browser' | 'editor' | 'terminal' | 'preview' | The type of notification to send. |
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.